CS 4980 CC
Sample Programs
simple-expr-recognizer.cpp
: a simple expression recognizer
expr.cpp
: Parsing and evaluating expressions (using recursive descent)
expr-eval-tree.java
: Expression tree with evaluator
Sample code to represent expressions and visit expressions (in Java)
SableCC Class Lister example
(illustrates using visitors to list class names)
expr-eval.bison
: Bison-based expression evaluator
expr-tree.bison
: Bison-based expression pretty-printer
nested.java
: Sample nested functions
nested.cpp
: Sample nested functions in C++
simptokens
: Simple token recognizer
sablecc-example
: Sample SableCC program
Docker version
which verifies an example works in SableCC 3.7
Average.java
: Sample Java program
Location.html
Location.java
Triangle.java