Rewrote tokenization code

This commit is contained in:
2022-07-25 04:08:43 -05:00
parent 6b2e112f3b
commit 36d2fefa3b
4 changed files with 125 additions and 138 deletions

View File

@@ -9,6 +9,15 @@ sitefiles consist of commands, which are of the form
sitefiles also allow comments with #
Actions and arguments are made of tokens. A token is some text surrounded by
whitespace, where backslashes are always escaped literally.
For example:
`token` -> `"token"`
`token\ with\ escapes` -> 'token with escapes'
`token\\with\\backslashes` -> 'token\with\backslashes'
# Part 2: Commands
* ```set [variable] [value]``` - sets some local variable for the following