On this line, it appears that the IMAG_NUMBER regular expression is attempting to reference the FLOAT_NUMBER terminal, but there does not seem to be any code in Lark to treat the ${} syntax that way. Consequently, the following code raises an exception:
#! /usr/bin/env python3
from lark import Lark
if __name__ == '__main__':
Lark(open('…/python3.lark'), parser='lalr', start='single_input').parse('x = 0.0j\n')
On this line, it appears that the
IMAG_NUMBER
regular expression is attempting to reference theFLOAT_NUMBER
terminal, but there does not seem to be any code in Lark to treat the${}
syntax that way. Consequently, the following code raises an exception: