Dylan Baker
c7c40f7df7
Implement number and boolean types
před 6 roky
Dylan Baker
64e2ab8eb0
Implement some very basic error handling
It's a little hacky and not very clean but it's
working for now.
před 6 roky
Dylan Baker
802884b135
Runn prettier
před 6 roky
Dylan Baker
31f584d688
Allow for self-closing tags
před 6 roky
Dylan Baker
ebae8a3536
Rework main parser logic
The way that we were doing it before was going to
make it very difficult to implement any sort of
error handling or extension to the language.
před 6 roky
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
před 6 roky
Dylan Baker
ebc21f694d
Redo map as each, still playing with the syntax
před 6 roky
Dylan Baker
db64e79472
Implement mapping
před 6 roky
Dylan Baker
c9c2e34940
Check for blank cli arguments
před 6 roky
Dylan Baker
d46f25c589
Run prettier
před 6 roky
Dylan Baker
d60e736fec
Allow using special characters in literals
před 6 roky
Dylan Baker
4ae6bd884b
Implement CLI
před 6 roky
Dylan Baker
69dc0975d0
Manage the whitespace produced by the compiler
před 6 roky
Dylan Baker
564b4808e9
Allow using variables as attribute values
před 6 roky
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.
před 6 roky
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.
před 6 roky
Dylan Baker
f7d7e9f46f
Fix up some stuff and add a test for parser
před 7 roky
Dylan Baker
a6b691807d
Handle nested expressions
před 7 roky
Dylan Baker
0bd9afe74b
Fix broken lexer test
před 7 roky
Dylan Baker
d746573773
Fix lexer
před 7 roky
Dylan Baker
bdf7527409
WIP Parser
před 7 roky
Dylan Baker
5c8194cc44
Package lock
před 7 roky
Dylan Baker
fdee6a6367
Use classes after all
před 7 roky
Dylan Baker
22512cf334
Somehow I wasn't initializing variables?
před 7 roky
Dylan Baker
cd6eccabb1
Update prettier config
před 7 roky
Dylan Baker
190d19a7a1
Initial commit
před 7 roky