Advertisement
Guest User

Untitled

a guest
Jun 10th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
BNF 0.52 KB | None | 0 0
  1. IDENT ::= [A-Za-z`~!@$%^&*_-+=|:/?.><][A-Za-z0-9`~!@$%^&*_-+=|:/?.><]*
  2. sep ::= '\r' '\n' | '\n'
  3. expressions ::= expression+
  4. expression ::= call | string_lit | number_lit | sep
  5. argument_list ::= expression [ ',' expressions ]*
  6. call ::= IDENT? ( '(' argument_list? ')' )?
  7. string_lit ::= '"' ( ANY - '"' ) '"'
  8. sci_notation ::= 'e' ( '+' | '-' )? [0-9]+
  9. hex_lit ::= '0' 'x' [0-9A-Fa-f]+ sci_notation?
  10. number_lit ::= ('0' | [1-9]) [0-9]* sci_notation? | ( '0' | [1-9]) [0-9]* '.' [0-9]* sci_notation? | ( '0' | [1-9] ) [0-9]*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement