Module: Rattler::Parsers

Included in:
BackEnd::Compiler, BackEnd::Optimizer::FlattenCapturingSequence, BackEnd::Optimizer::FlattenChoice, BackEnd::Optimizer::FlattenMatchingSequence, BackEnd::Optimizer::InlineRegularRules, BackEnd::Optimizer::JoinMatchCapturingSequence, BackEnd::Optimizer::JoinMatchChoice, BackEnd::Optimizer::JoinMatchMatchingSequence, BackEnd::Optimizer::JoinPredicateBareMatch, BackEnd::Optimizer::JoinPredicateNestedMatch, BackEnd::Optimizer::JoinPredicateOrBareMatch, BackEnd::Optimizer::JoinPredicateOrNestedMatch, BackEnd::Optimizer::MatchJoining, BackEnd::Optimizer::OptimizeChildren, BackEnd::Optimizer::ReduceRepeatMatch, BackEnd::Optimizer::RemoveMeaninglessWrapper, BackEnd::Optimizer::SimplifyRedundantRepeat, BackEnd::Optimizer::SimplifyTokenMatch, BackEnd::Optimizer::SpecializeRepeat, BackEnd::ParserGenerator::ExprGenerator, BackEnd::ParserGenerator::RuleGenerator, BackEnd::ParserGenerator::RuleSetGenerator, BackEnd::ParserGenerator::SequenceGenerator, BackEnd::ParserGenerator::SubGenerating, Grammar::Analysis, Grammar::GrammarParser, Grammar::Metagrammar
Defined in:
lib/rattler/parsers.rb,
lib/rattler/parsers/eof.rb,
lib/rattler/parsers/fail.rb,
lib/rattler/parsers/rule.rb,
lib/rattler/parsers/skip.rb,
lib/rattler/parsers/apply.rb,
lib/rattler/parsers/label.rb,
lib/rattler/parsers/match.rb,
lib/rattler/parsers/token.rb,
lib/rattler/parsers/assert.rb,
lib/rattler/parsers/atomic.rb,
lib/rattler/parsers/choice.rb,
lib/rattler/parsers/parser.rb,
lib/rattler/parsers/repeat.rb,
lib/rattler/parsers/disallow.rb,
lib/rattler/parsers/e_symbol.rb,
lib/rattler/parsers/rule_set.rb,
lib/rattler/parsers/sequence.rb,
lib/rattler/parsers/combining.rb,
lib/rattler/parsers/node_code.rb,
lib/rattler/parsers/predicate.rb,
lib/rattler/parsers/parser_dsl.rb,
lib/rattler/parsers/action_code.rb,
lib/rattler/parsers/assert_code.rb,
lib/rattler/parsers/effect_code.rb,
lib/rattler/parsers/list_parser.rb,
lib/rattler/parsers/side_effect.rb,
lib/rattler/parsers/direct_action.rb,
lib/rattler/parsers/disallow_code.rb,
lib/rattler/parsers/back_reference.rb,
lib/rattler/parsers/dispatch_action.rb,
lib/rattler/parsers/semantic_assert.rb,
lib/rattler/parsers/combinator_parser.rb,
lib/rattler/parsers/semantic_disallow.rb

Overview

rattler/parsers/combining.rb

Author

Jason Arhart

Documentation

Author

Defined Under Namespace

Modules: Atomic, Combining Classes: ActionCode, Apply, Assert, AssertCode, BackReference, Choice, CombinatorParser, DirectAction, Disallow, DisallowCode, DispatchAction, ESymbol, EffectCode, Eof, Fail, Label, ListParser, Match, NodeCode, Parser, ParserDSL, Predicate, Repeat, Rule, RuleSet, SemanticAssert, SemanticDisallow, Sequence, SideEffect, Skip, Token

Class Method Summary collapse

Class Method Details

.define(&block) ⇒ Rules

Define parse rules with the given block

Returns:

  • (Rules)

    a set of parse rules



58
59
60
# File 'lib/rattler/parsers.rb', line 58

def define(&block)
  ParserDSL.rules(&block)
end