More actions
imported>rabierre No edit summary |
imported>rabierre No edit summary |
||
| Line 1: | Line 1: | ||
[http://www.aistudy.com/linguistics/chomsky_hierarchy.htm Chomsky Hierarchy 참고] | [http://www.aistudy.com/linguistics/chomsky_hierarchy.htm Chomsky Hierarchy 참고] | ||
< EBNF > | |||
Expr ::= Term([+|-] Expr)? | Expr ::= Term([+|-] Expr)? | ||
Term ::= Factor ([*|/] Term)? | Term ::= Factor ([*|/] Term)? | ||
| Line 6: | Line 7: | ||
| Value | | Value | ||
Value ::= Integer | Double | Value ::= Integer | Double | ||
< > | |||
Expr ::= Term | |||
expr.isDouble = term.isDouble | |||
Expr1 ::= Term [+-] Expr2 | |||
expr1.isDouble = term.isDouble or expr2.isDouble | |||
Revision as of 09:04, 24 May 2014
< EBNF >
Expr ::= Term([+|-] Expr)?
Term ::= Factor ([*|/] Term)?
Factor :: = (Expr)
| Value
Value ::= Integer | Double
< >
Expr ::= Term
expr.isDouble = term.isDouble
Expr1 ::= Term [+-] Expr2
expr1.isDouble = term.isDouble or expr2.isDouble