Sha256: 06d63c02e63348e109ee7620aa909fa4df96423d6f6538c71f17a7b583e18f96

Contents?: true

Size: 1.47 KB

Versions: 3

Compression:

Stored size: 1.47 KB

Contents

(
 (pass (seq PASS))
 (rule ebnf "1" (star (alt declaration rule)))
 (rule declaration "2" (alt "@terminals" pass))
 (rule rule "3" (seq LHS expression))
 (rule expression "4" (seq alt))
 (rule alt "5" (seq seq (star (seq "|" seq))))
 (rule seq "6" (plus diff))
 (rule diff "7" (seq postfix (opt (seq "-" postfix))))
 (rule postfix "8" (seq primary (opt POSTFIX)))
 (rule primary "9"
  (alt HEX SYMBOL RANGE ENUM O_RANGE O_ENUM STRING1 STRING2 (seq "(" expression ")")))
 (rule pass "10" (seq "@pass" expression))
 (terminal LHS "11" (seq (opt ENUM) SYMBOL "::="))
 (terminal SYMBOL "12" (plus (alt (range "a-z") (range "A-Z") (range "0-9") "_" ".")))
 (terminal HEX "13"
  (seq "#x"
   (alt (range "0-9") (range "a-f") (range "A-F"))
   (alt (range "0-9") (range "a-f") (range "A-F"))) )
 (terminal RANGE "14" (seq "[" R_CHAR "-" R_CHAR "]"))
 (terminal ENUM "15" (seq "[" (plus R_CHAR) "]"))
 (terminal O_RANGE "16" (seq "[^" R_CHAR "-" R_CHAR "]"))
 (terminal O_ENUM "17" (seq "[^" (plus R_CHAR) "]"))
 (terminal STRING1 "18" (seq "\"" (star (alt (diff CHAR "\"") "\t")) "\""))
 (terminal STRING2 "19" (seq "'" (star (alt (diff CHAR "'") "\t")) "'"))
 (terminal CHAR "20" (alt HEX (seq "\\" (range "\\trn\"'")) (range "^\t\r\n")))
 (terminal R_CHAR "21" (diff CHAR "]"))
 (terminal POSTFIX "22" (range "?*+"))
 (terminal PASS "23"
  (plus
   (alt
    (range "#x20\t\r\n")
    (seq (alt "#" "//") (star (range "^\r\n")))
    (seq "/*" (star (alt (opt (seq "*" (range "^/"))) (range "^*"))) "*/")) )) )

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ebnf-0.3.5 etc/ebnf.sxp
ebnf-0.3.4 etc/ebnf.sxp
ebnf-0.3.3 etc/ebnf.sxp