AnyDSL

AnyDSL

Infix Expression


Contents


Syntax

infix_expr ::= expr_l op expr_r
op         ::= '*' | '/' | '%' | '+' | '-' | '<<' | '>>' | '&' | '^' | '|' 
              | '==' | '!=' | '<' | '<=' | '>' | '>='
              | '&&' | '||'
              | '=' | '*=' | '/=' | '%=' | '+=' | '-=' 
              | '<<=' | '>>=' | '&=' | '^=' | '|='

Also see operator precedence.

Typing

Semantics

Basically, the semantics of all operations are just like in C with a few differences:

General

Assignments

Examples

TODO