Home | History | Annotate | Download | only in antlr3

Lines Matching refs:Options

48 =begin rdoc ANTLR3::Main::Options
50 Defines command-line options and attribute mappings shared by all types of
55 module Options
68 def initialize( options = {} )
69 @no_output = options.fetch( :no_output, false )
70 @profile = options.fetch( :profile, false )
71 @debug_socket = options.fetch( :debug_socket, false )
72 @ruby_prof = options.fetch( :ruby_prof, false )
73 @encoding = options.fetch( :encoding, nil )
74 @interactive = options.fetch( :interactive, false )
75 @input = options.fetch( :input, $stdin )
81 o.separator 'Input Options:'
99 # overridable hook to modify / append options
120 include Options
124 def initialize( options = {} )
125 @input = options.fetch( :input, $stdin )
126 @output = options.fetch( :output, $stdout )
127 @error = options.fetch( :error, $stderr )
128 @name = options.fetch( :name, File.basename( $0, '.rb' ) )
319 def initialize( lexer_class, options = {} )
320 super( options )
374 def initialize( parser_class, options = {} )
375 super( options )
376 @lexer_class_name = options[ :lexer_class_name ]
377 @lexer_class = options[ :lexer_class ]
379 @parser_rule = options[ :parser_rule ]
381 @trace = options.fetch( :trace, nil )
382 @port = options.fetch( :port, ANTLR3::Debug::DEFAULT_PORT )
383 @log = options.fetch( :log, @error )
411 opt.separator "Debug Mode Options:"
489 def initialize( walker_class, options = {} )
490 super( options )
492 @lexer_class_name = options[ :lexer_class_name ]
493 @lexer_class = options[ :lexer_class ]
494 @parser_class_name = options[ :parser_class_name ]
495 @parser_class = options[ :parser_class ]
497 @port = options.fetch( :port, ANTLR3::Debug::DEFAULT_PORT )
498 @log = options.fetch( :log, @error )
540 opt.separator "Debug Mode Options:"