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
require "parslet" class Parser < Parslet::Parser rule(:a) do str("a").repeat(1, 1) end root(:a) end p Parser.new.parse("a") # => "a"@0
Expected:
["a"@0]
The text was updated successfully, but these errors were encountered:
Works fine with as, str("a").as(:a).repeat(1, 1) => [{:a=>"a"@0}]
as
str("a").as(:a).repeat(1, 1)
[{:a=>"a"@0}]
Sorry, something went wrong.
My answer here would be the same as for #221.
The trick you discovered (naming a bit) is the workaround for pragmatic use ;)
No branches or pull requests
Expected:
The text was updated successfully, but these errors were encountered: