jorts/jortsc/parser/parser.py

13 lines
198 B
Python
Raw Normal View History

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)