Commit graph

21 commits

Author SHA1 Message Date
arookas
17157e177c Added const modifier to grammar 2016-02-22 21:04:13 -05:00
arookas
6bba9894d5 Removed const_definition
Going to make constants a modifier for the variable symbol instead of
their own keyword.
2016-02-22 20:07:21 -05:00
arookas
1ecf0ed2bd Renamed various productions and nodes 2016-02-22 20:00:22 -05:00
arookas
9850d23dc3 Force parentheses for conditional statements
Since for loops require them, might as well be consistent.
2016-02-22 16:35:03 -05:00
arookas
faeac9bb4e Fixed: grammar bug with name labels 2016-02-12 21:31:38 -05:00
arookas
908ceedc58 Whoops, forgot to commit this in e8c2b09
Now you CAN actual use address literals, at least in expressions.
Whippee, look 'ma, I can use git! 👍
2016-02-03 23:04:02 -05:00
arookas
e8c2b09105 Added address literals
I don't know why someone would want to use a pointer literal in a
script, but now you can because there's an opcode for it and fuck it.
2016-02-03 23:02:25 -05:00
arookas
3e0a2dc403 Fixed: removed cast keywords 2016-02-01 04:57:29 -05:00
arookas
91588fae63 Fixed: builtins can't be local 2016-02-01 04:46:43 -05:00
arookas
723b8b64c9 Moved int/float/typeof to the standard library 2016-02-01 03:26:44 -05:00
arookas
be73c33069 Moved the statement keywords to the start of their respective modifiers productions 2016-02-01 03:25:47 -05:00
arookas
b57c70ee9d Added callable/storable modifiers to grammar
Still gotta add logic for them in the compiler.
2016-02-01 01:36:13 -05:00
arookas
5483073347 Added local keyword 2016-02-01 01:28:00 -05:00
arookas
e575a8a741 Refactored parameter/argument list productions
Now the ellipsis is validated at parse time directly in the grammar,
instead of in the sunParameterList constructor (possibly giving better
error messages). I was also able to remove the parameter/argument
transcient productions.
2016-01-31 23:13:09 -05:00
arookas
e57a55056b Tabbing 2016-01-31 21:32:41 -05:00
arookas
be3c2b1582 Removed useless header information 2016-01-31 21:31:43 -05:00
arookas
ed4822ee29 Moved dump and print to common.sun. 2015-12-28 23:24:08 -05:00
arookas
2ce9882cad Moved name labels to the statement production. 2015-12-28 20:19:12 -05:00
arookas
649e01b7c5 Fixed: removed [name_label] from if_statement.
IDK how that got there lol
2015-12-28 20:18:43 -05:00
arookas
73257ed389 Removed support for compound assignment definitions. 2015-12-18 18:57:24 -05:00
arookas
e5c8e9a8b7 Moved the ssc API code to its own folder. 2015-12-12 17:00:04 -05:00
Renamed from sunscript.grammar (Browse further)