Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
parsimonious.tests.test_grammar.RuleVisitorTests Class Reference
Inheritance diagram for parsimonious.tests.test_grammar.RuleVisitorTests:
Inheritance graph
[legend]
Collaboration diagram for parsimonious.tests.test_grammar.RuleVisitorTests:
Collaboration graph
[legend]

Public Member Functions

 test_round_trip (self)
 
 test_undefined_rule (self)
 
 test_optional (self)
 

Detailed Description

Tests for ``RuleVisitor``

As I write these, Grammar is not yet fully implemented. Normally, there'd
be no reason to use ``RuleVisitor`` directly.

Member Function Documentation

◆ test_round_trip()

parsimonious.tests.test_grammar.RuleVisitorTests.test_round_trip (   self)
Test a simple round trip.

Parse a simple grammar, turn the parse tree into a map of expressions,
and use that to parse another piece of text.

Not everything was implemented yet, but it was a big milestone and a
proof of concept.

◆ test_undefined_rule()

parsimonious.tests.test_grammar.RuleVisitorTests.test_undefined_rule (   self)
Make sure we throw the right exception on undefined rules.

The documentation for this class was generated from the following file: