nisstyre56
|
fbc2664a29
|
refactor parseMany function to accept general functions rather than strings, this is done in order to handle -> as an identifier rather than its own token
|
11 years ago |
nisstyre56
|
b18d0a1eca
|
work on parsing type applications/signatures
|
11 years ago |
nisstyre56
|
3b464b81cf
|
should error if an if-then-else expression has no else variant (must be that way due to the type system)
|
11 years ago |
nisstyre56
|
72374c9212
|
fixed error handling for dangling else
|
11 years ago |
nisstyre56
|
58f08f2578
|
handle empty applications
|
11 years ago |
nisstyre56
|
13201d8662
|
switching to underscore.js for most functionality
|
11 years ago |
nisstyre56
|
cb0dbd0948
|
fixed bugs in defop parsing, both in the tokenizer and parser (was doing something stupid with array comparisons)
|
11 years ago |
nisstyre56
|
b890053d20
|
readability fixes, a few bug fixes, can calculate free variables of let blocks, environments not being passed yet or closures created
|
11 years ago |
wes
|
71f9342cea
|
support for user defined operators, working on type declarations and inference
|
11 years ago |
Wesley Kerfoot
|
7589d5c4d2
|
desugaring for let/def expressions, more error handling, expanded test cases
|
11 years ago |
Wesley Kerfoot
|
b779025122
|
fixed error handling for let/def
|
11 years ago |
Wesley Kerfoot
|
fa70001d4b
|
basic support for let/def forms in the parser
|
11 years ago |
wes
|
02c20040c6
|
removed some old comments
|
11 years ago |
Wesley Kerfoot
|
8257dceac9
|
quick update
|
11 years ago |
Wesley Kerfoot
|
258e278f4e
|
more error handling shit
|
11 years ago |
Wesley Kerfoot
|
863a7c58d7
|
added more error checking
|
11 years ago |
Wesley Kerfoot
|
3b4b0fd33c
|
added more error handling, fixed a typo in the tokenizer
|
11 years ago |
Wesley Kerfoot
|
6eeebcb23c
|
added another new syntax error
|
11 years ago |
Wesley Kerfoot
|
6629ec62b8
|
changed error messages
|
11 years ago |
Wesley Kerfoot
|
31a5481d7c
|
changed error messages
|
11 years ago |
Wesley Kerfoot
|
129d339396
|
more error stuff
|
11 years ago |
Wesley Kerfoot
|
37c79418d4
|
started to add proper errors
|
12 years ago |
Wesley Kerfoot
|
fc6c61994d
|
almost done adding let forms to the language, made sure to throw exceptions in most places
|
12 years ago |
Wesley Kerfoot
|
2458430357
|
added tuple operator
|
12 years ago |
Wesley Kerfoot
|
df3597dae2
|
stuff
|
12 years ago |
Wesley Kerfoot
|
6729a11df4
|
tweaked the tokenizer
|
12 years ago |
Wesley Kerfoot
|
9d735e5789
|
fixed yet another bug, might refactor that function later
|
12 years ago |
Wesley Kerfoot
|
2bc760774b
|
cleaned up/modularized code more
|
12 years ago |
Wesley Kerfoot
|
55aab5b3f5
|
fixed some bugs related to list parsing
|
12 years ago |
Wesley Kerfoot
|
888b2d698a
|
update
|
12 years ago |
Wesley Kerfoot
|
942b92caa4
|
added support def functions and lists, next up: desugaring
|
12 years ago |
wes
|
b4d0872774
|
stuff
|
12 years ago |
wes
|
0a21cbd57e
|
removed restriction on def grammar
|
12 years ago |
Wesley Kerfoot
|
6021da7665
|
worked on tokenizer, added operators, stripping whitespace out
|
12 years ago |
Wesley Kerfoot
|
ee0d7aebcb
|
removed regex based tokenizer, finished switch/case based tokenizer, need to add support for whitespace in the parser or strip it out for now
|
12 years ago |
Wesley Kerfoot
|
86c2c5f76a
|
did work on tokenizer, removed a bit of reduntant code
|
12 years ago |
Wesley Kerfoot
|
0742d95bc4
|
started on the desugarer
|
12 years ago |
Wesley Kerfoot
|
28de71cc0a
|
moar pprint functions
|
12 years ago |
Wesley Kerfoot
|
88b9628d54
|
fixed bug where right parens were not getting popped after parsing applications, added a partial pprint function
|
12 years ago |
Wesley Kerfoot
|
3cafc6b06f
|
added a reference to the precedence climbing algorithm used here
|
12 years ago |
Wesley Kerfoot
|
058719a884
|
adding stuff
|
12 years ago |