Commit Graph

11 Commits

Author SHA1 Message Date
2e8c1187a7 Add some location information to exceptions
New parser errors come with location information where the parse failure
occurred

Also, some formatting

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-24 15:08:14 -07:00
872914f8bd Add documentation for cat macro
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-22 20:54:04 -07:00
f37efe06e2 Add cat macro
This concatenates all the arguments without spaces.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-22 20:53:27 -07:00
4d221a2658 Fix typo
Optiona -> Optional

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-22 20:52:21 -07:00
2b57eb8c98 Downgrade required Python version from 3.10 to 3.8
Python 3.10 was require because I was using the `str | None` style
typing syntax instead of Optional. This is 3.10+, but now the max
required version is 3.8 for the `Protocol` typing API.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-22 20:33:03 -07:00
dc86529fb8 Add some more examples to README
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-22 10:29:30 -07:00
0724e7c856 Add some documentation to the README
This is mostly about the language usage and available macros.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-22 10:27:46 -07:00
068cb6d35b Fix escapes
If you want to include a literal ${macro call}, you can preface it with
a backslash like \${macro call}.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-22 10:21:47 -07:00
e566b2e956 Update README with usage instructions
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-22 10:12:02 -07:00
c6a18bcce7 Add markup.py
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-09-22 10:11:37 -07:00
c13b139002 Initial commit 2022-09-22 17:03:53 +00:00