Dylan Baker
91730231df
Saving state
il y a 6 ans
Dylan Baker
497af0aa34
Implement test helper functions
il y a 6 ans
Dylan Baker
f77ad26a69
Allow empty strings
il y a 6 ans
Dylan Baker
581c99f794
Rewrite AST and compiler to be more normal
il y a 6 ans
Dylan Baker
c7c40f7df7
Implement number and boolean types
il y a 6 ans
Dylan Baker
64e2ab8eb0
Implement some very basic error handling
It's a little hacky and not very clean but it's
working for now.
il y a 6 ans
Dylan Baker
31f584d688
Allow for self-closing tags
il y a 6 ans
Dylan Baker
ebc21f694d
Redo map as each, still playing with the syntax
il y a 6 ans
Dylan Baker
db64e79472
Implement mapping
il y a 6 ans
Dylan Baker
d46f25c589
Run prettier
il y a 6 ans
Dylan Baker
d60e736fec
Allow using special characters in literals
il y a 6 ans
Dylan Baker
564b4808e9
Allow using variables as attribute values
il y a 6 ans
Dylan Baker
ef0845237f
Allow whitespace while between quotes
What was happening was that spaces were allowed in
all literals to account for quoted strings, but
this meant that two identifiers in a row would get
parsed as a single literal. This commit sets a
flag to allow whitespace in literals when a quote
is encountered and then unsets that flag at the
next quote.
il y a 6 ans
Dylan Baker
709986560e
First try at the compiler
No variables or conditionals or anything yet, just
the basic ability to turn s-expressions into HTML.
il y a 6 ans
Dylan Baker
f7d7e9f46f
Fix up some stuff and add a test for parser
il y a 7 ans
Dylan Baker
0bd9afe74b
Fix broken lexer test
il y a 7 ans
Dylan Baker
fdee6a6367
Use classes after all
il y a 7 ans
Dylan Baker
190d19a7a1
Initial commit
il y a 7 ans