Changes between Version 1 and Version 2 of ExpressionSyntax
- Timestamp:
- 2017-09-14 09:33:44 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExpressionSyntax
v1 v2 4 4 5 5 {{{ 6 operators := ( "+" | "-" | "*" | "/" | "%" );6 operators := ( "+" | "-" | "*" | "/" | "%" | "=" ); 7 7 expression := 8 ( identifier 8 ( identifier 9 | constant 9 10 | operator /* monadic */ expression 10 11 ( operator /* diadic */ expression ) … … 14 15 15 16 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) 17 18 This doesn't take into account whether an identifer is or isn't mutable ... and takes no account of contants not being mutable. 19 20 == What does all this this mean? == 21 Well if we don't mind having expressions like 22 {{{ 23 3 := fred + 2 * -15 + *21 24 }}} 25 Then it's accepable 26