Dylan Baker
06ab1b52d4
Compile function applications (named and lambda)
5 jaren geleden
Dylan Baker
7a9b1a6727
Create simple compiler class
Just numbers and strings for now
5 jaren geleden
Dylan Baker
4b3ce29206
Remove resolver and compiler, add define to parser
5 jaren geleden
Dylan Baker
91730231df
Saving state
5 jaren geleden
Dylan Baker
3b6525e29f
Prettier
5 jaren geleden
Dylan Baker
681a88a755
Clean up unused stuff
5 jaren geleden
Dylan Baker
a3e6a6df66
Move list of selfclosing tags into its own module
5 jaren geleden
Dylan Baker
60c6d9a24a
Don't include ="" for attributes with empty string
5 jaren geleden
Dylan Baker
20ab139ca7
Add doctype to list of self closing tags
I added upper and lowercase because that seemed
preferable to always casting every html function
name to lowercase.
5 jaren geleden
Dylan Baker
581c99f794
Rewrite AST and compiler to be more normal
5 jaren geleden
Dylan Baker
802884b135
Runn prettier
5 jaren geleden
Dylan Baker
31f584d688
Allow for self-closing tags
5 jaren geleden
Dylan Baker
d82d4ed612
Don't wrap eaches in an empty function call node
Because I was assuming that every expression
started with a literal, calls to `each` were
getting wrapped by a functionCall node with no
functionName, which was subsequently ignored by
the compiler. This removes all of that uselessness
5 jaren geleden
Dylan Baker
ebc21f694d
Redo map as each, still playing with the syntax
5 jaren geleden
Dylan Baker
db64e79472
Implement mapping
5 jaren geleden
Dylan Baker
d46f25c589
Run prettier
5 jaren geleden
Dylan Baker
69dc0975d0
Manage the whitespace produced by the compiler
5 jaren geleden
Dylan Baker
564b4808e9
Allow using variables as attribute values
5 jaren geleden
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.
5 jaren geleden