## Building instructions Running `./build.sh` will produce `lexparse.jar` which will accept code on STDIN. ## Assumptions - Enums, methods, classes, constants, and variables at the top level all share the same namespace. - The program name ("program *Foo* ...") is not in a shared namespace with anything else. - The unicode minus signs in the given example were meant to be ascii - The "constint" in the given example is meant to be "const int" - `this` is handled specially in that it is not a keyword, but we don't have to verify that it's been defined before being used like other identifiers. - We don't have to write a type checker. For example if a class `Foo` has a method `bar()` that returns an object of type `Baz`, and the program contains a variable `x` of type `Foo`, we can't distinguish if `x.bar().quack()` is valid because we'd have to know the return type of `bar()` and look at the declared methods of `Baz`. In general this means that while we can resolve whether or not a name has been defined, we can't actually check their usages correctly.