class documentation

class ProgramName(Name): (source)

Constructor: ProgramName(length)

View In Hierarchy

Program names

Class Variable max_length The maximum number of tokens to emit before leaving this state

Inherited from Name:

Method next Determines the next encode state given a token
Class Variable mode Whether to munch maximally (0) or minimally (-1)

Inherited from EncoderState (via Name, Line):

Method __init__ Undocumented
Method munch Munch the input string and determine the resulting token, encoder state, and remainder of the string
Instance Variable length Undocumented
max_length: int = (source)

The maximum number of tokens to emit before leaving this state