Can one assign multiple aliases for a terminal or rule in Lark ?
Consider the following grammar
coordinate : "(" X "," Y ")"
%import common.SIGNED_NUMBER -> X
%import common.SIGNED_NUMBER -> Y
which returns the error
lark.exceptions.GrammarError: Rule 'X' used but not defined (in rule coordinate)
My full script for reference is as follows :
from lark import Lark
parser = Lark("""\
coordinate : "(" X "," Y ")"
%import common.SIGNED_NUMBER -> X
%import common.SIGNED_NUMBER -> Y
""")
parser.parse("(12,43)")