SHARE
TWEET

Untitled

a guest Aug 28th, 2018 200 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <expr> ::= <term> <expr_tail>
  2.  
  3. <expr_tail> ::= + <term> <expr_tail>
  4.               | - <term> <expr_tail>
  5.               | <empty>
  6.  
  7. <term> ::= <factor> <term_tail>
  8.  
  9. <term_tail> ::= * <factor> <term_tail>
  10.               | / <factor> <term_tail>
  11.               | <empty>
  12.  
  13. <factor> ::= "(" <expr> ")"
  14.            | Num
  15.  
  16. Identifier ::= <character2> <name>
  17.  
  18. name ::= <name>
  19.        | <character1>
  20.        | <empty>
  21.  
  22. <character1> ::= <letter> | <digit> | "_"
  23.  
  24. <character2> ::= <letter> | "_"
  25.  
  26. <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" | "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"
  27.  
  28. <digit> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
  29.  
  30. <empty> ::= ""
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top