cscg24-lolpython

CSCG 2024 Challenge 'Can I Haz Lolpython?'
git clone https://git.sinitax.com/sinitax/cscg24-lolpython
Log | Files | Refs | sfeed.txt

lex_token1.py (227B)


      1# lex_token.py
      2#
      3# Tests for absence of tokens variable
      4
      5import sys
      6sys.path.insert(0,"..")
      7
      8import ply.lex as lex
      9
     10t_PLUS = r'\+'
     11t_MINUS = r'-'
     12t_NUMBER = r'\d+'
     13
     14def t_error(t):
     15    pass
     16
     17sys.tracebacklimit = 0
     18
     19lex.lex()
     20
     21