Lines Matching full:lexer
279 if name =~ /(\w+)::(Lexer|Parser|TreeParser)$/
315 generated lexer file is run directly from the command line.
325 lexer = @lexer_class.new( in_stream )
329 token = lexer.next_token
394 opt.on( '--lexer-name CLASS_NAME', "name of the lexer class to use" ) { |val|
399 opt.on( '--lexer-file PATH_TO_LIBRARY', "path to library defining the lexer class" ) { |val|
403 warn( "unable to load the library specified by --lexer-file: #{ $! }" )
431 fail( "unable to locate the lexer class ``#@lexer_class_name''" )
435 | no lexer class has been specified with the --lexer-name option
437 | lexer class
456 lexer = @lexer_class.new( in_stream )
457 # token_stream = CommonTokenStream.new( lexer )
458 parser = @parser_class.new( lexer, parser_options )
508 opt.on( '--lexer-name CLASS_NAME', 'full name of the lexer class to use' ) { |val| @lexer_class_name = val }
510 '--lexer-file PATH_TO_LIBRARY',
511 'path to load to make the lexer class available'
516 warn( "unable to load the library `#{ val }' specified by --lexer-file: #{ $! }" )
555 fail( "unable to locate the lexer class #@lexer_class_name" )
568 @lexer = @lexer_class.new( in_stream )
569 @token_stream = ANTLR3::CommonTokenStream.new( @lexer )