-
Notifications
You must be signed in to change notification settings - Fork 4
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
Using paths in parse set #173
Comments
In the meantime you can |
Thanks, but this in very simple situations. I have parse with set code + a ton of other red code in paren! All the other would get composed too. |
gives:
You can even write a wrapper on |
Or parse the rule and replace paths with bound words :) |
Let me ask: why wouldn't we want to just allow paths, as
Historically, we didn't have |
Thanks Gregg, Rebol2 hadn't Looking at my code, this solution would:
Gregg knows I am asking this because I am working on parsing Red function specs to Thank you |
@dockimbel is this more involved than allowing paths after |
Set
insideparse
actually accepts only words. When you must set them inside acontext
, amap
or any other element acceptingpath
s, you must use a temporaryword
and then Red code inparen!
as:parse data [set str string! (myobject/mystring: str)]
It would save a lot of code if
set
inparse
could acceptpath
s. (We actually have this syntax for the nativeset
)Thank you!
The text was updated successfully, but these errors were encountered: