leegao / Xi

The Xi Language

Home Page:http://www.cs.cornell.edu/courses/cs4120/2011fa/handouts/language.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Added parser for interface files, changed array declaration to take nonconst dimensions.

leegao opened this issue · comments

All unit tests now passes with flying colors.

Changed: Dimension is now an arraylist of VisualizableTreeNodes, either null (indicating blank dimension) or an ExpressionNode (that should typecheck down to an integer type).

TODO:
-2 Columns should be 1-based as well as lines.
-1 You do not have any tests to verify that you are properly tracking positions.
-2 Arrays can be declared with non-constant definitions, per the spec
-4 Your parser throws a NullPointerException on the input "main(x: int[][]) {{return;}}" and similar inputs. This made it fail a lot of our tests.
-1 You should add some tests for associativity and other error-prone things.