Skip to content

Instantly share code, notes, and snippets.

@ENvironmentSet
Last active May 18, 2018 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ENvironmentSet/95e2e76fb5e34b27e486f5b64bf8779c to your computer and use it in GitHub Desktop.
Save ENvironmentSet/95e2e76fb5e34b27e486f5b64bf8779c to your computer and use it in GitHub Desktop.
EBNF of identifier
alphabet ::= A-z
alphabets ::= alphabet alphabets | nothing
number ::= 0-9
numbers ::= number numbers | nothing
specialChar ::= _ | ?
specialChars ::= specialChar specialChars | nothing
identifierHead ::= specialChar | alphabet
identifierBody ::= alphabets | numbers | specialChars
identifierBodys ::= identifierBody identifierBodys | nothing
identifier ::= identifierHead identifierBodys 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment