]> ruin.nu Git - proglang.git/blob - documentation
changed the documentation
[proglang.git] / documentation
1 ####### DOCUMENTATIATOIAITAT ION ########
2
3
4 a simple c-like language with support for if/else-statements, while-loops and the standard arithmetic (+, -, /, *) and comparison expressions (<, >, <=, >=, ==, !=). also, post increase/decrease expressions (++, --) are supported. Assignments are allowed in expressions, but they are only allowed on the right side of arithmetic/comparision operators if they are put inside parenthesis
5
6
7 data types:
8 integers and booleans.
9
10 comments:
11 // and /* */ comments are allowed.
12
13 (For compilation to work the Bool type in Abssyntax has to be removed so the internal haskell type is used)
14
15 shift/reduce conflicts:
16
17 if with else: 1 conflict
18 An if statement before the else could be reduced to an if statement lacking the else, but the correct thing is to shift it onto the stack.