Source

ply / test / lex_doc1.py

The default branch has multiple heads

Full commit
# lex_token.py
#
# Missing documentation string

import lex

tokens = [
    "PLUS",
    "MINUS",
    "NUMBER",
    ]

t_PLUS = r'\+'
t_MINUS = r'-'
def t_NUMBER(t):
    pass

def t_error(t):
    pass


import sys
sys.tracebacklimit = 0

lex.lex()