Did I find the right examples for you? yes no

All Samples(7)  |  Call(6)  |  Derive(0)  |  Import(1)

src/h/t/HTSQL-2.3.3/src/htsql/core/syn/grammar.py   HTSQL(Download)
 
 
from ..util import (maybe, oneof, listof, omapof, trim_doc, toposort, omap,
        TextBuffer, Printable)
from ..error import Error, Mark, parse_guard, point
    def __init__(self):
        self.rules = omap()
        self.signals = omap()
 
    def add_rule(self, name):
 
        # Make a scan table from each tokenizer rule.
        tables = omap()
        for rule in self.rules:
            assert rule.tokens
    def __init__(self, name):
        assert isinstance(name, unicode)
        self.name = name
        self.tokens = omap()