forked from luna/jorts
13 lines
198 B
Python
13 lines
198 B
Python
|
|
||
|
from lark import Lark
|
||
|
|
||
|
# TODO: write a grammar
|
||
|
GRAMMAR = """
|
||
|
yeet
|
||
|
"""
|
||
|
|
||
|
def parse(string: str):
|
||
|
"""Parse"""
|
||
|
parser = Lark(GRAMMAR, parser='lalr', debug=True)
|
||
|
return parser.parse(string)
|