// the grammar. An equivalent lex+yacc grammar and support code would
// be several times as long.
-Comment = "//" ~[\n\r]* [\r\n]!
- | "/*" ~[\n\r]* "*/"
+Comment = "//" (~[\n\r])* [\r\n]!
+ | "/*" (~[\n\r])* "*/"
ws = ([\r\n ] | Comment)* -> ~[\r\n ]
s = ws! Program ws!
name = Name:: [A-Za-z] [A-Za-z0-9\[\]_]**
index = "[" [0-9]+ "]" | [0-9]+
int = [\-0-9]++
-ShipSpecific = ShipSpecific:: "\"" ~[\"]++ "\""
+ShipSpecific = ShipSpecific:: "\"" (~[\"])++ "\""
// the following are not part of the official FLEET syntax and are
// specific to Adam's interpreter.