-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing multiple fields #215
Comments
"Only zeroes" is, unfortunately, a pretty vague definition. I don't really see any major benefits in "matching their names against a regex":
Probably possible in some cases. I suggest that we'd return to this after implementation of #44. |
And I'm mistaken. The right condition should be
It should be configurable. By default is should match only the properties in ``seq```.
to_binary()
In some reverse-engineered (from source) specs it is written to do so. And the parser in that repo really does so (and in a bit inefficient way, not sure that compilers can optimize that away). |
Sometimes a one needs to test thet the record is a terminator. Sometimes terminator is the record containing only zeros. How can we implement this?
1 We can test all the fields that they are zeros. For these we need a syntax allowing this. The most flexible way to do this is to match their names against a regex:
2 another way is to have a syntax to match binary representation. For that we need to have an operator to convert a field into binary and some language to create a sequence of zero bytes.
IMHO it's nice to have both.
The text was updated successfully, but these errors were encountered: