Lines Matching refs:should

21     token.name.should == 'ZERO'
24 token.name.should == '<EOF>'
31 token_types.should == %w(ZERO)
39 }.should raise_error( ANTLR3::Error::MismatchedToken ) do |e|
40 e.expecting.should == '0'
41 e.unexpected_type.should == '1'
63 token.name.should == 'ZERO'
66 token.name.should == 'ONE'
69 token.name.should == '<EOF>'
76 b.should raise_error( ANTLR3::Error::NoViableAlternative ) do |exc|
77 exc.unexpected_type.should == '2'
101 token.name.should == 'ZERO'
104 token.name.should == 'FOOZE'
107 token.name.should == 'ONE'
110 token.name.should == '<EOF>'
117 should raise_error( ANTLR3::Error::NoViableAlternative ) do |exc|
118 exc.unexpected_type.should == '2'
140 token.name.should == 'FOO'
141 token.start.should == 0
142 token.stop.should == 0
143 token.text.should == 'f'
146 token.name.should == 'FOO'
147 token.text.should == 'fo'
148 token.start.should == 1
149 token.stop.should == 2
152 token.name.should == 'FOO'
153 token.start.should == 3
154 token.stop.should == 5
155 token.text.should == 'foo'
158 token.name.should == 'FOO'
159 token.start.should == 6
160 token.stop.should == 9
161 token.text.should == 'fooo'
164 token.name.should == '<EOF>'
171 should raise_error( ANTLR3::Error::MismatchedToken ) do |exc|
172 exc.expecting.should == 'f'
173 exc.unexpected_type.should == '2'
194 token.name.should == 'FOO'
195 token.start.should == 0
196 token.stop.should == 1
197 token.text.should == 'fo'
200 token.name.should == 'FOO'
201 token.text.should == 'foo'
202 token.start.should == 2
203 token.stop.should == 4
206 token.name.should == 'FOO'
207 token.start.should == 5
208 token.stop.should == 8
209 token.text.should == 'fooo'
212 token.name.should == '<EOF>'
219 should raise_error( ANTLR3::Error::MismatchedToken ) do |exc|
220 exc.expecting.should == 'f'
221 exc.unexpected_type.should == '2'
229 should raise_error( ANTLR3::Error::EarlyExit ) { |exc|
230 exc.unexpected_type.should == ANTLR3::Constants::EOF
252 token.name.should == 'FOO'
253 token.start.should == 0
254 token.stop.should == 1
255 token.text.should == 'fo'
258 token.name.should == 'FOO'
259 token.text.should == 'faaooa'
260 token.start.should == 2
261 token.stop.should == 7
264 token.name.should == '<EOF>'
273 should raise_error( ANTLR3::Error::MismatchedToken ) do |exc|
274 exc.expecting.should == 'f'
275 exc.unexpected_type.should == '2'
276 exc.column.should == 10
277 exc.line.should == 1
298 token.name.should == 'FOO'
299 token.start.should == 0
300 token.stop.should == 1
301 token.text.should == 'fo'
304 token.name.should == 'FOO'
305 token.start.should == 2
306 token.stop.should == 12
307 token.text.should == 'fababbooabb'
310 token.name.should == '<EOF>'
317 should raise_error( ANTLR3::Error::EarlyExit ) do |exc|
318 exc.unexpected_type.should == 'o'
319 exc.column.should == 6
320 exc.line.should == 1
341 token.name.should == 'FOO'
342 token.start.should == 0
343 token.stop.should == 0
344 token.text.should == 'f'
347 token.name.should == 'FOO'
348 token.start.should == 1
349 token.stop.should == 2
350 token.text.should == 'fa'
353 token.name.should == 'FOO'
354 token.start.should == 3
355 token.stop.should == 3
356 token.text.should == 'f'
359 token.name.should == '<EOF>'
368 should raise_error( ANTLR3::Error::MismatchedToken ) do |exc|
369 exc.unexpected_type.should == 'b'
370 exc.column.should == 3
371 exc.line.should == 1
393 token.name.should == 'DIGIT'
394 token.start.should == 0
395 token.stop.should == 0
396 token.text.should == '0'
399 token.name.should == 'DIGIT'
400 token.start.should == 1
401 token.stop.should == 1
402 token.text.should == '8'
405 token.name.should == 'DIGIT'
406 token.start.should == 2
407 token.stop.should == 2
408 token.text.should == '5'
411 token.name.should == '<EOF>'
419 should raise_error( ANTLR3::Error::MismatchedRange ) do |exc|
420 exc.min.should == '0'
421 exc.max.should == '9'
422 exc.unexpected_type.should == 'a'
423 exc.column.should == 1
424 exc.line.should == 1
446 token.name.should == 'IDENTIFIER'
447 token.start.should == 0
448 token.stop.should == 5
449 token.text.should == 'foobar'
452 token.name.should == 'WS'
453 token.start.should == 6
454 token.stop.should == 6
455 token.text.should == ' '
458 token.name.should == 'IDENTIFIER'
459 token.start.should == 7
460 token.stop.should == 11
461 token.text.should == '_Ab98'
464 token.name.should == 'WS'
465 token.start.should == 12
466 token.stop.should == 14
467 token.text.should == " \n "
470 token.name.should == 'IDENTIFIER'
471 token.start.should == 15
472 token.stop.should == 20
473 token.text.should == 'A12sdf'
476 token.name.should == '<EOF>'
484 should raise_error( ANTLR3::Error::NoViableAlternative ) do |exc|
485 exc.unexpected_type.should == '-'
486 exc.column.should == 1
487 exc.line.should == 1
515 token.name.should == 'IDENTIFIER'
516 token.start.should == 0
517 token.stop.should == 5
518 token.text.should == 'foobar'
521 token.name.should == 'WS'
522 token.start.should == 6
523 token.stop.should == 6
524 token.text.should == ' '
527 token.name.should == 'IDENTIFIER'
528 token.start.should == 7
529 token.stop.should == 11
530 token.text.should == '_Ab98'
533 token.name.should == 'WS'
534 token.start.should == 12
535 token.stop.should == 14
536 token.text.should == " \n "
539 token.name.should == 'IDENTIFIER'
540 token.start.should == 15
541 token.stop.should == 20
542 token.text.should == 'A12sdf'
545 token.name.should == '<EOF>'
553 should raise_error( ANTLR3::Error::NoViableAlternative ) do |exc|
554 exc.unexpected_type.should == '-'
555 exc.column.should == 1
556 exc.line.should == 1