clicon / cligen

CLIgen is a Command-Line Interface generator
http://www.cligen.se
Other
33 stars 37 forks source link

Space after comma not allowed in pre-function parsing #101

Closed pprindeville closed 10 months ago

pprindeville commented 10 months ago

I have the following .cli file:

...
    43  no("Delete") {
    44      server("Server")
    45      <name:string tnsr_expand_dbvar("candidate", "/netgate-radius:radius-client/client/servers=%s/name")>("Name of server"),
    46              tnsr_cli_del("/netgate-radius:radius-client/client/servers=%s", "name");
    47  }
...

and it fails to parse with:

/usr/lib/x86_64-linux-gnu/tnsr/clispec/radius.cli:45: Error: syntax error: at or before: ' '

i.e. the space after the comma between the arguments to the pre-function.

I also tried putting spaces before the after the (, before the ,, and before the ) and those also failed.

olofhagsand commented 10 months ago

Removed explicit whitespaces in lex/yacc rules. Please verify

pprindeville commented 10 months ago

This seems to fix it.