xbrlus / xule

An open-source XBRL processor for business rules, rendering and custom data reporting. See https://xbrl.us/xule for documentation and https://xbrl.us/xule-editor for a VS Code syntax highlighter.
Apache License 2.0
24 stars 9 forks source link

Pre-parse output attribute declarations #18

Open jzavala-gonzalez opened 1 year ago

jzavala-gonzalez commented 1 year ago

When declaring new output attributes using the 'output-attribute' keyword, XULE needs to incorporate these new keywords into its grammar before it can parse the remaining file. Otherwise, it crashes when seeing a "new" keyword. This is particularly necessary when using XINCE because all the attributes it needs declared. Also, I copied over these edits directly from my site-packages installation so I might miss something just let me know.