What is the purpose of ','. expression in Python grammar specification?
Question:
Can you help me with the args
part in Python grammar specification?
args:
| ','.(starred_expression | ( assignment_expression | expression !':=') !'=')+ [',' kwargs ]
| kwargs
Especially this part: ','.(starred_expression | ( assignment_expression | expression !':=') !'=')+
. What does ','.
mean?
I checked https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form and https://en.wikipedia.org/wiki/Parsing_expression_grammar, but could not find a reference to that.
Answers:
Can you help me with the args
part in Python grammar specification?
args:
| ','.(starred_expression | ( assignment_expression | expression !':=') !'=')+ [',' kwargs ]
| kwargs
Especially this part: ','.(starred_expression | ( assignment_expression | expression !':=') !'=')+
. What does ','.
mean?
I checked https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form and https://en.wikipedia.org/wiki/Parsing_expression_grammar, but could not find a reference to that.