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
@@ -31,6 +31,12 @@ public class TestScanner {
compileExpectFailure("/hi-newcomment2.tri");
}
@Test
public void testPoundDemo() {
compileExpectFailure("/pounddemo.tri");
}
private void compileExpectSuccess(String filename) {
+2
View File
@@ -1,3 +1,5 @@
! this won't work until after some work in the practicals
# new comment
begin
+5 -3
View File
@@ -1,8 +1,10 @@
! this won't work until after some work in the practicals
# new comment
/*
* another new comment
*/
$
another new comment
$
begin
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