Sha256: 5a02f3aa2d216159d36fa96c75e4ccf27e3d27250161a0cd85c52db3c4b8fdb6

Contents?: true

Size: 978 Bytes

Versions: 13

Compression:

Stored size: 978 Bytes

Contents

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" ;
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
symbol = "[" | "]" | "{" | "}" | "(" | ")" | "<" | ">"
       | "'" | '"' | "=" | "|" | "." | "," | ";" ;
character = letter | digit | symbol | " " ;

identifier = letter , { letter | digit | " " } ;
terminal = "'" , character , { character } , "'"
         | '"' , character , { character } , '"' ;

special = "?" , any , "?" ;

comment = (* this is a comment "" *) "(*" , any-symbol , "*)" ;
any-symbol = ? any visible character ? ; (* ? ... ? *)

lhs = identifier ;
rhs = identifier
     | terminal
     | comment , rhs
     | rhs , comment
     | "[" , rhs , "]"
     | "{" , rhs , "}"
     | "(" , rhs , ")"
     | rhs , "|" , rhs
     | rhs , "," , rhs ;

rule = lhs , "=" , rhs , ";" | comment ;
grammar = { rule } ;

Version data entries

13 entries across 13 versions & 5 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/examplefiles/test.ebnf
pygments.rb-0.6.3 vendor/pygments-main/tests/examplefiles/test.ebnf
pygments.rb-0.6.2 vendor/pygments-main/tests/examplefiles/test.ebnf
pygments.rb-0.6.1 vendor/pygments-main/tests/examplefiles/test.ebnf
pygments.rb-0.6.0 vendor/pygments-main/tests/examplefiles/test.ebnf
mortar-pygments.rb-0.5.7 vendor/pygments-main/tests/examplefiles/test.ebnf
mortar-pygments.rb-0.5.6 vendor/pygments-main/tests/examplefiles/test.ebnf
mortar-pygments.rb-0.5.5 vendor/pygments-main/tests/examplefiles/test.ebnf
pygments.rb-jruby-0.5.4.2 vendor/pygments-main/tests/examplefiles/test.ebnf
pygments.rb-jruby-0.5.4.1 vendor/pygments-main/tests/examplefiles/test.ebnf
pygments.rb-jruby-0.5.4 vendor/pygments-main/tests/examplefiles/test.ebnf
gitlab-pygments.rb-0.5.4 vendor/pygments-main/tests/examplefiles/test.ebnf
pygments.rb-0.5.4 vendor/pygments-main/tests/examplefiles/test.ebnf