summaryrefslogtreecommitdiff
path: root/ecomp-c/test1.e
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-01-30 08:31:49 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-01-30 08:31:49 +0100
commitae504e72178b3c20a6a8f29ab224021522f3df45 (patch)
treeedec8b61acb48f556018434cc230e0cc2277cc4d /ecomp-c/test1.e
parent3b3b1371286588dc67227db20878d4aaf0fb6817 (diff)
downloadcompilertests-ae504e72178b3c20a6a8f29ab224021522f3df45.tar.gz
compilertests-ae504e72178b3c20a6a8f29ab224021522f3df45.tar.bz2
added constants
Diffstat (limited to 'ecomp-c/test1.e')
-rw-r--r--ecomp-c/test1.e8
1 files changed, 6 insertions, 2 deletions
diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e
index 4043bf8..66db7f7 100644
--- a/ecomp-c/test1.e
+++ b/ecomp-c/test1.e
@@ -2,7 +2,11 @@
* module trying to show all features of the language
*/
module test1;
-
+
+const
+ // integer constant
+ N : integer = 20;
+
var
// this is an integer
a : integer;
@@ -10,7 +14,7 @@ var
// this is also an integer
b : integer;
c : integer; // c too
-
+
begin
a := 1;
b := 7;