Menu

#139 OCaml parser treats braces as comment

v1.63
open
nobody
None
1
2018-05-09
2018-05-09
No

I was trying to use cloc with OCaml code and getting odd results. From --wriate-lang-def it looks like ocaml is using the same comment regexp as Pascal, which uses { ... } for multi-line comments. OCaml uses braces for sequences and other things so that is not going to work. OCaml only has one comment form: ( ... ) but they can be nested!

Discussion

  • Robert Norton

    Robert Norton - 2018-05-09

    Sourceforge ate my asterisks. OCaml comments look like: (* ... *)

     

    Last edit: Robert Norton 2018-05-09
  • Robert Norton

    Robert Norton - 2018-05-09

    Oops just realised you moved to github...

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.