Added pounddemo

This commit is contained in:
Sandy Brownlee
2022-09-09 15:46:22 +01:00
parent a2cac87f81
commit 64c25f1486
4 changed files with 28 additions and 3 deletions
@@ -32,6 +32,12 @@ public class TestScanner {
} }
@Test
public void testPoundDemo() {
compileExpectFailure("/pounddemo.tri");
}
private void compileExpectSuccess(String filename) { private void compileExpectSuccess(String filename) {
// build.gradle has a line sourceSets.test.resources.srcDir file("$rootDir/programs") // build.gradle has a line sourceSets.test.resources.srcDir file("$rootDir/programs")
+2
View File
@@ -1,3 +1,5 @@
! this won't work until after some work in the practicals
# new comment # new comment
begin begin
+5 -3
View File
@@ -1,8 +1,10 @@
! this won't work until after some work in the practicals
# new comment # new comment
/* $
* another new comment another new comment
*/ $
begin begin
put('H'); put('i'); put('!') put('H'); put('i'); put('!')
+15
View File
@@ -0,0 +1,15 @@
! this won't work until after some work in the practicals
let
var a : Integer;
var b : Integer
in
begin
a := 1;
b := 2;
putint(a)
putint(b)
putint(£a)
putint(£b)
end