Skip to content

Commit

Permalink
correctly allows comments now
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Nov 18, 2010
1 parent 43f130d commit 3f72280
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ end
desc 'Test the generated parser against the sample program'
task :test, [:theory] do |task,args|
args.with_defaults :theory => 'trichotomy'
sh "cat theories/#{args[:theory]} | ./chase +RTS -N4"
sh "cat theories/#{args[:theory]} | ./chase +RTS -N"
end


Expand Down
4 changes: 2 additions & 2 deletions lexer.x
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
tokens :-

[\ \t]+ ; -- ignore whitespace
"-- "[^\r\n]* ; -- ignore comments
"#"[^\r\n]* ; -- ignore comments
"-- "[^\r\n]*[\r\n]* ; -- ignore comments
"#"[^\r\n]*[\r\n]* ; -- ignore comments
"/*"([^\*]|"*"[^\/])*"*/" ; -- ignore comments
[\r\n]+ { \p s -> TokenNewline p }
"Exists" { \p s -> TokenExists p }
Expand Down
1 change: 1 addition & 0 deletions theories/trichotomy
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- trichotomies
T[a,a] -> Contradiction
T[a,b] & T[b,a] -> Contradiction
-> Exists a,b,c,d,e: T[a,b] & T[b,c] & T[d,e]
Expand Down

0 comments on commit 3f72280

Please sign in to comment.