public
Description: a personal programming language written for school
Clone URL: git://github.com/brosner/dpl.git
dpl / test.php
100755 40 lines (30 sloc) 0.47 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* the version of php used to exeucte this code was modified
* therefore will not run else where
*/
 
 
error_reporting(15);
 
executeLevel;
print "start\n";
 
$a = 2;
 
if($a == 8) {
  executeLevel;
  print "a == 8\n";
 
  $b = 4;
 
  executeLevel;
  if($b == 5) {
    executeLevel;
    print "b == 5\n";
  }
  else {
    executeLevel;
    print "b != 5\n";
  }
}
else {
  executeLevel;
  print "a != 8\n";
}
 
executeLevel;
 
print "end\n";
 
?>