Changes between Initial Version and Version 1 of ExpressionSyntax
- Timestamp:
- 2017-09-14 09:30:07 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExpressionSyntax
v1 v1 1 = Expression Syntax = 2 3 This is just an area win which I'm exploring a simple expression syntax ... 4 5 {{{ 6 operators := ( "+" | "-" | "*" | "/" | "%" ); 7 expression := 8 ( identifier 9 | operator /* monadic */ expression 10 ( operator /* diadic */ expression ) 11 | "(" expression ")" 12 ); 13 }}} 14 15 The above syntax should let you have any operator as either monadic or diadic ... and has no implicit precedence (ie the brackets are required to produce the precedence)