nisstyre56
|
05742335bb
|
give a better name to type declarations in the IR
|
11 years ago |
nisstyre56
|
f33ee5ae70
|
pretty print debugging for data type defs, fixed another mistake
|
11 years ago |
nisstyre56
|
71640b2c48
|
fix typo and add test case for data type defs
|
11 years ago |
nisstyre56
|
49059be2fe
|
preliminary support for full data type definition syntax, misc improvements on error reporting (hopefully)
|
11 years ago |
nisstyre56
|
6b33a7e318
|
fix more bugs
|
11 years ago |
nisstyre56
|
39403648ec
|
fix a few bugs, functionality for aliasing type operators now works
|
11 years ago |
nisstyre56
|
9d1d75b4ba
|
(partial) support for type definition syntax, plus style cleanups
|
11 years ago |
nisstyre56
|
f1b12a26e5
|
Better error messages for type application errors where something that was not a type operator, type variable, or type application is used
|
11 years ago |
nisstyre56
|
93a7ff3071
|
Better errors, more accurate position info
|
11 years ago |
nisstyre56
|
17dff62f1e
|
fixed annoyance with exception handling, will have to be more robust in the future though
|
11 years ago |
nisstyre56
|
dd58dffc70
|
experimental support for full type application syntax, basic error checking, still needs syntax for user created types
|
11 years ago |
nisstyre56
|
12b3eb58b2
|
fix brace style of conditionals
|
11 years ago |
nisstyre56
|
223eeb8e72
|
a few tweaks based on jshint
|
11 years ago |
nisstyre56
|
db2933031d
|
defuck tabs in files
|
11 years ago |
nisstyre56
|
8167fcf1ba
|
continuing syntax support for type declarations
|
11 years ago |
nisstyre56
|
3f7b2af82f
|
-> should be in the list of operators
|
11 years ago |
nisstyre56
|
03dbefcdd9
|
error handling for type applications
|
11 years ago |
nisstyre56
|
0297fbd5af
|
fixed bug with defop parsing, wrong token type in the pattern
|
11 years ago |
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 |