Need a example for function call argument list #186
Answered
by
foonathan
windwhisper4759
asked this question in
Q&A
-
I need to parse a string like "func(0.1, 0.2, 1.3)" "func(0.21)". |
Beta Was this translation helpful? Give feedback.
Answered by
foonathan
Dec 28, 2023
Replies: 1 comment
-
https://lexy.foonathan.net/playground/?id=G4qxvzn8x&mode=tree You probably also want to integrate that into A function call is a postfix expression using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
foonathan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://lexy.foonathan.net/playground/?id=G4qxvzn8x&mode=tree
You probably also want to integrate that into
dsl::expr
: https://lexy.foonathan.net/reference/dsl/expression/#docA function call is a postfix expression using
dsl::op(dsl::parenthesized.opt_list(...))
as operator, and the function name as operand.