-
Notifications
You must be signed in to change notification settings - Fork 86
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
run()
can't be called on generic Rule
#124
Comments
It is also not possible to call the implicit conversion manually. Rule.Runnable(p.program).run() shows:
|
This is basically the same problem as #120: the macros are trying to be clever and falling flat on their faces |
Yes. We'll get this fixed with an entirely new parser and rule design. |
I got it working by using |
@sschaef thanks for the work-around. I ran into this problem not with a generic rule, but a rule with two arguments. import org.parboiled2._
class P(val input: ParserInput) extends org.parboiled2.Parser {
def SomeRule(arg0: Int, arg1: Int): Rule0 = rule {
str("")
}
}
object P {
val p = new P("")
p.SomeRule(0, 1).run()
}
|
Error message in macro expansion:
The text was updated successfully, but these errors were encountered: