Skip to content

Using concatenate dolar before parentheses #578

Answered by hildjj
jcubic asked this question in Q&A
Discussion options

You must be logged in to vote

Here's a simplified example:

Foo = bar+

bar = "bar" { return "baz" }

The input "barbar" will give the output ['baz', 'baz'].

When you change Foo to be $bar+, the output is "barbar". The $ discards whatever the bar rule returns and instead returns matching text. The bar rule still runs twice, still matches twice.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@jcubic
Comment options

@hildjj
Comment options

@jcubic
Comment options

@hildjj
Comment options

Answer selected by jcubic
@jcubic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants