Changes between Version 11 and Version 12 of ExpressionSyntax


Ignore:
Timestamp:
2017-09-14 10:19:30 (8 years ago)
Author:
archibald
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExpressionSyntax

    v11 v12  
    33333 := fred + (2 * -15) + *thing 
    3434}}} 
    35 Then it's accepable 
     35Then it's accepable. 
    3636 
     37== Some improvement == 
     38OK, well if we sp;it the operators into monadic, diadic or both then hat ''might'' help things somewhat. 
     39{{{ 
     40monadics := ( "-" | "!" ); 
     41 
     42diadics := ( "+" | "-" | "*" | "/" | "%" | ":=" ); 
     43 
     44bracedMonadic := 
     45  ( "sizeof"  
     46  | "typeof"  
     47  | L-gillaumet typename R-gillaumet  
     48  ); 
     49 
     50expression :=  
     51  ( identifier 
     52  | constant 
     53  | ( monadics expression 
     54    | bracedMonadic "(" expression ")" 
     55    | expression  
     56    ) 
     57    ( ( diadics expression  
     58      | expression  
     59      ) ) 
     60  | "(" expression ")" 
     61  ); 
     62}}} 
     63 
     64which gives us the ability to specify a subset of monadic, diadic operators (infix notation) and a set of monadic braced expressions (apparently single parameter functions). 
     65