Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
pegasus
master
Top Level Namespace
Array
Iterable
Pegasus
Automata
Automaton
State
UniqueAutomaton
Dfa
ConflictErrorContext
Dfa
DState
Dot
OutputTarget
Elements
EmptyElement
EofElement
IndexableElement
LookaheadElement
NonterminalId
TerminalId
Error
DfaException
ErrorContext
GeneralException
GrammarException
NfaException
PdaException
PegasusException
TableException
Generated
NonterminalTree
Semantics
NonterminalTree
TerminalTree
Token
Tree
TerminalTree
Token
Tree
SelfDeque
Generators
Api
FileGenerator
FileInput
FileOutputMode
FilesOutputMode
Input
OutputMode
PegasusOptionParser
StdInput
StdOutputMode
C
CContext
HeaderGenerator
LanguageInput
SourceGenerator
Crystal
CrystalContext
LanguageInput
ParserGenerator
CrystalSem
CrystalContext
FullInput
GeneratorInput
LanguageInput
SourceGenerator
CrystalTableGen
CSem
CContext
FullInput
GeneratorInput
HeaderGenerator
LanguageInput
SourceGenerator
CTableGen
Language
LanguageData
LanguageDefinition
NamedConflictErrorContext
OneOrMoreElement
Option
OptionalElement
OptionObject
Rule
RuleAlternative
RuleElement
Token
ZeroOrMoreElement
Nfa
AnyTransition
ByteTransition
LambdaTransition
Nfa
NState
RangeTransition
StateChain
Transition
Pda
DottedItem
Grammar
Item
LookaheadItem
Pda
PState
Semantics
NonterminalTree
SemanticsData
TerminalTree
Sim
ParentTree
Token
TokenTree
Tree
Built with Crystal 1.10.0
2023-11-04 01:07:45 UTC
class
Pegasus::
Generated::
NonterminalTree
Pegasus::Generated::NonterminalTree
Pegasus::Generated::Tree
Reference
Object
Defined in:
pegasus/generated/grammar_parser.cr
Constructors
.new
(nonterminal_id : Int64, children : Array(Pegasus::Generated::Tree) =
[]
of
Tree
)
Instance Method Summary
#children
: Array(Tree)
#name
#nonterminal_id
: Int64
#table_index
Instance methods inherited from class
Pegasus::Generated::Tree
flatten(*, value_index : Int32, recursive_name : String, recursive_index : Int32)
flatten
,
table_index
table_index
Constructor Detail
def self.
new
(nonterminal_id : Int64, children :
Array
(
Pegasus::Generated::Tree
) =
[]
of
Tree
)
#
[
View source
]
Instance Method Detail
def
children
:
Array
(
Tree
)
#
[
View source
]
def
name
#
[
View source
]
def
nonterminal_id
: Int64
#
[
View source
]
def
table_index
#
[
View source
]