[cocci] Checking parse errors for command-line semantic matches

Markus Elfring <[email protected]>
Newsgroups fr.inria.cocci
Message-ID <[email protected]>
Hello,

I would like to pass some expressions for the functionality “Command-Line Semantic Match”.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/e6f8731b851f5d76d2731a9d546dc4f0b181526e/docs/manual/cocci_syntax.tex#L1920-1957

Questionable test result (according to the software combination “Coccinelle 1.3.0”):
Markus_Elfring@Sonne:…/Projekte/Coccinelle/Probe> /usr/bin/spatch --parse-cocci --sp '- EINVAL'
…
minus: parse error: 
  File "/tmp/sp-31268-2224d9.cocci", line 4, column 4, charpos = 31
  around = 'EINVAL',
  whole content = * - EINVAL


Under which circumstances will such data processing become better supported?

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.