Skip to content

Instantly share code, notes, and snippets.

@ENvironmentSet
Last active June 6, 2018 08:54
Show Gist options
  • Save ENvironmentSet/2d22984c251d21b121e936b0c840d701 to your computer and use it in GitHub Desktop.
Save ENvironmentSet/2d22984c251d21b121e936b0c840d701 to your computer and use it in GitHub Desktop.
EBNF of container

EBNF of identifier
EBNF of literal
연속된 2개 이상의 space는 한개의 space로 치환됩니다. 모든 줄은 trim 됩니다.(줄의 첫 번째 문자가 space가 아니고, 가장 마지막 문자가 space가 아닐 때 까지 모든 space를 제거함을 의미.)

space ::= 'utf8 space character'
spaces ::= space spaces
expressions ::= expression spaces expressions
expression ::= container | literal | nothing
nothing ::= 
selfEndContainer ::= <identifier attributes/>
containerStart ::= <identifier attributes>
containerEnd ::= <identifier/>
container ::= containerStart expressions containerEnd | selfEndContainer
attributes ::= attribute attributes
attribute ::= identifier = expression | nothing 
@seeeturtle
Copy link

selfEndContainer ::= <identifier attributes/>
containerStart ::= <identifier attributes>
containerEnd ::= <identifier/>
container ::= containerStart expressions containerEnd | selfEndContainer

이런식으로 하는게 나을 것 같습니다
@ENvironmentSet

@ENvironmentSet
Copy link
Author

merged! @seeeturtle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment