Searched refs:ast_test (Results 1 – 1 of 1) sorted by relevance
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/ |
D | construction.rb | 373 def self.ast_test( opts, &special_test ) singletonMethod in TestASTConstructingParser 394 ast_test :input => "1 + 2", :rule => :r1, :ast => "(+ 1 2)" 396 ast_test :input => "assert 2+3", :rule => :r2, :ast => "(assert (+ 2 3))" 398 ast_test :input => "assert 2+3 : 5", :rule => :r2, :ast => "(assert (+ 2 3) 5)" 400 ast_test :input => "if 1 fooze", :rule => :r3, :ast => "(if 1 fooze)" 402 ast_test :input => "if 1 fooze else fooze", :rule => :r3, :ast => "(if 1 fooze fooze)" 404 ast_test :input => "while 2 fooze", :rule => :r4, :ast => "(while 2 fooze)" 406 ast_test :input => "return;", :rule => :r5, :ast => "return" 408 ast_test :input => "return 2+3;", :rule => :r5, :ast => "(return (+ 2 3))" 410 ast_test :input => "3", :rule => :r6, :ast => "3" [all …]
|