Skip to content

Commit

Permalink
Merge branch 'master' of home:cse440p1
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoshwolfe committed Sep 17, 2010
2 parents af21012 + 2bf3af3 commit f519cbb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pascal.y
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ if_statement : KEYWORD_IF expression KEYWORD_THEN statement KEYWORD_ELSE stateme
{

}
| KEYWORD_IF expression KEYWORD_THEN statement
{

}
;

assignment_statement : variable_access KEYWORD_COLON_EQUAL expression
Expand Down
3 changes: 2 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def main():
tests[test_name] = {}

if ext == '.p.expected':
tests[test_name]['expected'] = open(absolute(f), 'r').read()
expected_output = open(absolute(f), 'r').read()
tests[test_name]['expected'] = expected_output.replace('Errors detected. Exiting.\n', '')
else:
tests[test_name]['source'] = open(absolute(f), 'r').read()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
'_' (0137): illegal character at line 8
8: syntax error at 'Switch'
Errors detected. Exiting.

0 comments on commit f519cbb

Please sign in to comment.