Module: Depager
- Defined in:
- lib/depager.rb,
lib/depager/cli.rb,
lib/depager/utils.rb,
lib/depager/parser.rb,
lib/depager/grammar.rb,
lib/depager/version.rb,
lib/depager/plugins/ast.rb,
lib/depager/plugins/cst.rb,
lib/depager/plugins/lex.rb,
lib/depager/plugins/rie.rb,
lib/depager/plugins/slex.rb
Defined Under Namespace
Modules: LALR, Utils
Classes: ASTBuilderExtension, ActionExtension, CLI, CSTBuilderExtension, DeclarationPartParser, ErrorExit, Extension, ExtensionGenerator, Generator, Grammar, GrammarPartParser, LexerExtension, ParserGenerator, RieExtension, Rule, StatefulLexerExtension, Token
Constant Summary
collapse
- EPS =
0x3fffffff
- VERSION =
"0.3.0.b20250423".freeze
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
7
8
9
|
# File 'lib/depager.rb', line 7
def self.configuration
@configuration ||= {}
end
|
.debug_mode?(flag = "") ⇒ Boolean
11
12
13
14
|
# File 'lib/depager.rb', line 11
def self.debug_mode?(flag = "")
value = configuration[:debug] or return false
!!value.match(/#{flag}/)
end
|
.path_of(io) ⇒ Object
4
5
6
7
8
9
|
# File 'lib/depager/parser.rb', line 4
def self.path_of(io)
return "-" if io == $stdin
return "<#{io.class}>" unless io.respond_to?(:path)
io.path
end
|
.verbose_mode? ⇒ Boolean
16
17
18
|
# File 'lib/depager.rb', line 16
def self.verbose_mode?
configuration[:verbose]
end
|