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

Version Path
webruby-0.2.7 modules/emscripten/third_party/ply/test/lex_rule1.py
webruby-0.2.5 modules/emscripten/third_party/ply/test/lex_rule1.py
webruby-0.2.4 modules/emscripten/third_party/ply/test/lex_rule1.py
webruby-0.2.2 modules/emscripten/third_party/ply/test/lex_rule1.py
webruby-0.2.1 modules/emscripten/third_party/ply/test/lex_rule1.py
webruby-0.1.2 modules/emscripten/third_party/ply/test/lex_rule1.py
webruby-0.1.1 modules/emscripten/third_party/ply/test/lex_rule1.py
webruby-0.1.0 modules/emscripten/third_party/ply/test/lex_rule1.py