Changes between Initial Version and Version 1 of ExpressionSyntax


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ExpressionSyntax

    v1 v1  
     1= Expression Syntax = 
     2 
     3This is just an area win which I'm exploring a simple expression syntax ... 
     4 
     5{{{ 
     6operators := ( "+" | "-" | "*" | "/" | "%" ); 
     7expression :=  
     8  ( identifier  
     9  | operator /* monadic */ expression  
     10      ( operator /* diadic */ expression ) 
     11  | "(" expression ")" 
     12  ); 
     13}}} 
     14 
     15The 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)