lex2-py3
v1.1.1

Library Guide

  • Installing
  • Defining Rulesets
    • Rules
      • Rule
    • Rule Groups
      • RuleGroup
    • Ruleset
  • Lexer Usage
    • Instantiation
      • lex2.make_lexer()
    • Textstream I/O
      • ITextIO
    • Iteration and Tokenization
      • Token
      • TextPosition
    • Token Validation
  • Customizing Regex Engine
    • Underlying Architecture
    • Practical Example
    • Improving match() Performance on Python
  • Miscellaneous
    • Profiling Order of Rules (Improving Performance)

API Reference

  • lex2
    • lex2.excs
      • UnknownTokenError
      • UnexpectedTokenError
      • EOF
    • lex2.lexer
      • BaseLexer
      • ProfilerLexer
      • GenericLexer
    • lex2.matcher
      • BaseMatcher
      • ReMatcher
    • lex2.predefs
      • Comments
      • space
      • tab
      • newline
    • lex2.textio
      • TextPosition
      • ITextstream
      • BaseTextstream
      • TextstreamType
      • TextstreamDisk
      • TextstreamMemory
      • ITextIO
      • TextIO
    • lex2.util
      • lex2.util.deps
      • lex2.util.types
    • Rule
      • Rule.__init__()
      • Rule.id
      • Rule.returns
      • Rule.regex
      • Rule.get_matcher()
      • Rule.set_matcher()
    • RuleGroup
      • RuleGroup.__init__()
      • RuleGroup.rule()
    • Token
      • Token.__init__()
      • Token.id
      • Token.data
      • Token.pos
      • Token.groups
      • Token.is_rule()
      • Token.is_rule_oneof()
      • Token.validate_rule()
      • Token.validate_rule_oneof()
    • LexerOptions
      • LexerOptions.SeparatorOptions
      • LexerOptions.__init__()
      • LexerOptions.space
      • LexerOptions.tab
      • LexerOptions.newline
      • LexerOptions.id_returns
    • ILexer
      • ILexer.push_ruleset()
      • ILexer.pop_ruleset()
      • ILexer.clear_rulesets()
      • ILexer.get_next_token()
      • ILexer.get_options()
      • ILexer.set_options()
    • IMatcher
      • IMatcher.get_uid()
      • IMatcher.compile_pattern()
      • IMatcher.match()
    • DEFAULT_LEXER
    • DEFAULT_MATCHER
    • make_lexer()
lex2-py3
  • Search


© Copyright 2020-2022, DeltaRazero.

Built with Sphinx using a theme provided by Read the Docs.