Changes between Version 1 and Version 2 of ExpressionSyntax


Ignore:
Timestamp:
2017-09-14 09:33:44 (8 years ago)
Author:
archibald
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExpressionSyntax

    v1 v2  
    44 
    55{{{ 
    6 operators := ( "+" | "-" | "*" | "/" | "%" ); 
     6operators := ( "+" | "-" | "*" | "/" | "%" | "=" ); 
    77expression :=  
    8   ( identifier  
     8  ( identifier 
     9  | constant 
    910  | operator /* monadic */ expression  
    1011      ( operator /* diadic */ expression ) 
     
    1415 
    1516The 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 
     18This 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? == 
     21Well if we don't mind having expressions like 
     22{{{ 
     233 := fred + 2 * -15 + *21 
     24}}} 
     25Then it's accepable 
     26