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
I want to parse terraform files. For that I have used hcl2.lark grammer from hcl2 python package and created custom transformer. Parser works fine but if I pass propagate_positions to true then parser breaks. How to get Meta information in transformer methods?
While generating JS file, I am passing propagate_positions to true and also when calling get_parser methods.
e.g.
lark-js file.lark --propagate_positions -o output.js
get_parser({transformer: new ExampleTransformer(), propagate_positions: true}
The text was updated successfully, but these errors were encountered:
I want to parse terraform files. For that I have used hcl2.lark grammer from hcl2 python package and created custom transformer. Parser works fine but if I pass propagate_positions to true then parser breaks. How to get Meta information in transformer methods?
While generating JS file, I am passing propagate_positions to true and also when calling get_parser methods.
e.g.
lark-js file.lark --propagate_positions -o output.js
get_parser({transformer: new ExampleTransformer(), propagate_positions: true}
The text was updated successfully, but these errors were encountered: