Randy Heit
16fc9be411
Interpret function calls to type refs as type casts
2013-10-30 20:53:02 -05:00
Randy Heit
39d7fa0605
Allow access to the numeric properties.
...
- Identifiers can now evaluate to type references.
- The dot operator can now find symbols in type references.
2013-10-29 22:06:14 -05:00
Randy Heit
03c4244fd8
Accept only one identifier for class names.
2013-10-29 22:05:09 -05:00
Randy Heit
6384613487
Allow using constants in other constants before their definitions.
...
- Something like this is now valid:
const foo = bar + 10;
const bar = 1000;
2013-10-25 22:30:25 -05:00
Randy Heit
76d2e8cfc4
Set node type when nil-ing an id node.
...
- Nodes can't stay as type AST_ExprID if they don't also have the
operation PEX_ID.
2013-10-25 22:30:25 -05:00
Randy Heit
850055a766
Add evaluation of constant unary and binary expressions
...
- Added ZCCCompiler class as a place to generate IR and symbols from an
AST. Right now, all it does is simplify constant expressions into
constant values.
- Do type promotion on the AST where appropriate.
- Added true and false tokens to the parser driver.
2013-10-25 22:30:24 -05:00