examples: annotate examples
[nit.git] / contrib / nitcc / examples / calc.nit
index 1ee7bc3..924fab4 100644 (file)
@@ -14,7 +14,7 @@
 
 # Example of a calculation used nitcc
 # see `calc.sablecc` for the grammar
-module calc
+module calc is example
 
 # Reuse the test program to simplify the code
 import calc_test_parser
@@ -75,7 +75,7 @@ redef class Ne_div
        end
 end
 
-var t = new MyTest
+var t = new TestParser_calc
 var n = t.main
 var v = new Calulator
 v.enter_visit(n)