Sha256: 8e56106d6d6b4a1d18715ca7d5fe750b910ed8b4e3d86f2eb166240cad502539
Contents?: true
Size: 294 Bytes
Versions: 8
Compression:
Stored size: 294 Bytes
Contents
# lex_rule1.py # # Rule function with incorrect number of arguments import sys if ".." not in sys.path: sys.path.insert(0,"..") import ply.lex as lex tokens = [ "PLUS", "MINUS", "NUMBER", ] t_PLUS = r'\+' t_MINUS = r'-' t_NUMBER = 1 def t_error(t): pass lex.lex()
Version data entries
8 entries across 8 versions & 1 rubygems