diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-01-23 20:38:45 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-01-23 20:38:45 +0100 |
commit | 6572619caffcc02de2d7300c4320028c4ab2d8a8 (patch) | |
tree | 2a2cf1d7915eab803dcca0d528dbe6045c8a6239 /ecomp-c/test1.e | |
parent | e7ee74f96de6521fd09d89883913dd8b8bd94ef5 (diff) | |
download | compilertests-6572619caffcc02de2d7300c4320028c4ab2d8a8.tar.gz compilertests-6572619caffcc02de2d7300c4320028c4ab2d8a8.tar.bz2 |
some work on basic declarations and statement blocks
Diffstat (limited to 'ecomp-c/test1.e')
-rw-r--r-- | ecomp-c/test1.e | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e index b5d77db..120087b 100644 --- a/ecomp-c/test1.e +++ b/ecomp-c/test1.e @@ -1,6 +1,18 @@ +/* + * module trying to show all features of the language + */ module test1; +var + // this is an integer + a : integer; + + // this is also an integer + b : integer; + c : integer; // c too + begin a := 1; b := 7; + c := a + d; end |