cc: make it work with modern lark

This commit is contained in:
Paul Mathieu 2025-09-12 12:35:06 +02:00
parent 467ef32107
commit b8d828c438
2 changed files with 2 additions and 2 deletions

View File

@ -1490,7 +1490,7 @@ def parse_tree(tree, debug=False):
def larkparse(f, debug=False):
with open(GRAMMAR_FILE) as g:
asparser = lark.Lark(g.read())
asparser = lark.Lark(g.read(), maybe_placeholders=False)
data = f.read()
if isinstance(data, bytes):
data = data.decode()

View File

@ -69,7 +69,7 @@ def dump(secmap):
def parse_args():
parser = argparse.ArgumentParser(description='Assemble.')
parser = argparse.ArgumentParser(description='Link.')
parser.add_argument('--debug', action='store_true',
help='print debug info')
parser.add_argument('objfiles', metavar='O', nargs='+',