Replies: 1 comment 1 reply
-
Yes, the channel name should be quoted. If you have any doubts about the grammar I think the lark file says it all. The grammar reflects the 1.3-2.2A standards very closely with only minor deviations that lift a couple of restrictions, for example scientific notation. For exceptions it could be better, and it also seems like lark-parser has gotten better in terms of error handling. Technically it would be possible to ignore this error and convert it into a warning and eventually the library will reach this point, but at the moment there are still parts of the LDF that are ignored when it comes to Python object creation. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
So far I've been using
ldfparser
in LDF files with noChannel_name
postfix name definition, until today, I'm getting the following exception when trying to parse the attachedsnippet.ldf
file (attached in case you need it):snippet.ldf
How I'm loading it:
After checking the Specification Revision 2.2A, I noticed the
Channel_name
value has to be quotedI did so and the exception is gone:
Is this the expected
Channel_name
value format? Do you think it would be helpful to point this out in the exception message?Thanks again for the awesome library 👍
Beta Was this translation helpful? Give feedback.
All reactions