progs/lexer/lex.sc
changeset 827 67c8a6e6a305
parent 800 9eea6a801e10
child 844 bbbc2a7940cb
--- a/progs/lexer/lex.sc	Mon Aug 30 14:18:08 2021 +0100
+++ b/progs/lexer/lex.sc	Mon Aug 30 14:38:24 2021 +0100
@@ -1,6 +1,11 @@
 // A simple lexer inspired by work of Sulzmann & Lu
 //==================================================
 //
+// call with
+//
+//   amm lex.sc 
+//
+
 
 // regular expressions including records
 abstract class Rexp 
@@ -176,7 +181,7 @@
 // Two Simple While Tests
 //========================
 
-@doc("small tests")
+@arg(doc = "small tests")
 @main
 def small() = {
 
@@ -193,3 +198,8 @@
   println(lexing(WHILE_REGS, prog2))
 }
 
+
+
+
+
+// runs with amm2 and amm3