You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To generate Lark standalone parsers for users (those users using python -m lark.tools.standalone), in lark/tools/standalone.py, necessary file sections are included in the final standalone parser. These necessary files are defined on line 56 in lark/tools/standalone.py in the Python list EXTRACT_STANDALONE_FILES. This list includes visitors.py (on line 61). The included section of visitors.py (in any standalone parsers) is from line 10 to line 518 (of visitors.py). However, on line 431 of visitors.py, update_wrapper function is used, but the import line from functools import wraps, update_wrapper is on line 3 of visitors.py and not in the included section (line 10-518 of visitors.py) in the generated standalone parser. Thus, a bug can be generated if line 431 is called in any standalone parsers.
The text was updated successfully, but these errors were encountered:
Describe the bug
To generate Lark standalone parsers for users (those users using
python -m lark.tools.standalone
), inlark/tools/standalone.py
, necessary file sections are included in the final standalone parser. These necessary files are defined on line 56 inlark/tools/standalone.py
in the Python listEXTRACT_STANDALONE_FILES
. This list includesvisitors.py
(on line 61). The included section ofvisitors.py
(in any standalone parsers) is from line 10 to line 518 (ofvisitors.py
). However, on line 431 ofvisitors.py
,update_wrapper
function is used, but the import linefrom functools import wraps, update_wrapper
is on line 3 ofvisitors.py
and not in the included section (line 10-518 ofvisitors.py
) in the generated standalone parser. Thus, a bug can be generated if line 431 is called in any standalone parsers.The text was updated successfully, but these errors were encountered: