Mixing Visitor and Embedded Pattern #1830
jonestristand
started this conversation in
General
Replies: 1 comment
-
I think this may be possible by accessing the last element in the CST_STACK. However, If you only need to distinguish between the digits before and after the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to mix the visitor and embedded actions approach to semantics? Visitor pattern works fine for the majority of what I'm doing, but at the moment my number production is something like:
and using the visitor approach means I get an array of the digits in order, but no information about the placement of the decimal point. When I try to use embedded action semantics to concatenate the tokens and return those, I still get the CST node in my visitor, not the returned value. Is there any way to do this?
Beta Was this translation helpful? Give feedback.
All reactions