We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue found in SO post
To reproduce:
from textx import metamodel_from_str grammar = ''' Model: commands*=Command; Command: MyNumber; MyNumber: MyFloat | INT; MyFloat: /[+-]?(((\d+\.(\d*)?|\.\d+)([eE][+-]?\d+)?)|((\d+)([eE][+-]?\d+)))(?<=[\w\.])(?![\w\.])/; ''' mm = metamodel_from_str(grammar) mm.register_obj_processors({'MyFloat': lambda x: float(x)}) model = mm.model_from_str(''' 10 10.5 ''') assert type(model.commands[0]) is int assert type(model.commands[1]) is float
The text was updated successfully, but these errors were encountered:
Fix #182 Better handling of match rule object processors
fd938e4
66a0c78
c56bab3
Merge pull request #183 from textX/fix/issue-182-obj-proc-terminals
bcc8975
igordejanovic
Successfully merging a pull request may close this issue.
Issue found in SO post
To reproduce:
The text was updated successfully, but these errors were encountered: