presentations/highlight-js/test/detect/ebnf/default.txt

13 lines
510 B
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
(* line comment *)
rule = [optional] , symbol , { letters } , ( digit | symbol ) ;
optional = ? something unnecessary ? ; (* trailing comment *)
symbol = '!' | '@' | '#' | '$' | '%' | '&' | '*' ;
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
letter = "A" | "B" | "C" | "D" | "E" | "F" | "G"
| "H" | "I" | "J" | "K" | "L" | "M" | "N"
| "O" | "P" | "Q" | "R" | "S" | "T" | "U"
| "V" | "W" | "X" | "Y" | "Z" ;