ply - Add-ons for the PLY lexer & parser generator

Wrapper classes for the PLY parser generator.

parser - A class wrapper for PLY parsers

Class wrapper for PLY’s yacc module.

class Parser(scanner, debug=False)[source]
__init__(scanner, debug=False)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

parse(input_)[source]

scanner - A class wrapper for PLY scanners

Class wrapper for PLY’s lex module.

class Scanner(debug=False, ignorecase=False)[source]
__init__(debug=False, ignorecase=False)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

reset(input_)[source]
token()[source]