Home | History | Annotate | Download | only in lexer

Lines Matching refs:Lexer

9     lexer grammar RuleProperty;
14 @lexer::init {
17 @lexer::members {
30 example "referencing lexer rule properties" do
31 lexer = RuleProperty::Lexer.new( "foobar _ab98 \n A12sdf" )
32 tokens = lexer.map { |tk| tk }
34 lexer.properties.should have( 3 ).things
35 text, type, line, pos, index, channel, start, stop = lexer.properties[ 0 ]
45 text, type, line, pos, index, channel, start, stop = lexer.properties[ 1 ]
55 lexer.properties.should have( 3 ).things
56 text, type, line, pos, index, channel, start, stop = lexer.properties[ 2 ]
72 lexer grammar LexerRuleLabel;
98 lexer = LexerRuleLabel::Lexer.new 'a 2'
99 lexer.next_token
100 lexer.token_text.should == ' '