Error: Atom expected #5744
Replies: 3 comments
-
The error message is not great and could definitely be improved. You need to remove a few parentheses: (executables
(names (a b c)
(modes (byte exe) (native shared_object))) Could you point to where this example comes from the doc? Or better, submit a PR :) |
Beta Was this translation helpful? Give feedback.
-
When this is paste into the dune file I get: Error: unclosed parenthesis at end of input Adding an additional parenthesis (names (a b c)) Adding the ) at the end: |
Beta Was this translation helpful? Give feedback.
-
Try removing the parentheses before "a" :)
|
Beta Was this translation helpful? Give feedback.
-
I'm new to ocaml and dune so this is probably a bad question. Sorry about that.
I'm trying to build multiple executables. I keep getting something that looks like a syntax error. Then I tried to run an example from the dune documentation and it gets a similar error. "opam upgrade dune" says everything is up to date
This is from the dune documentation:
(executables
((names (a b c))
(modes ((byte exe) (native shared_object)))))
File "dune", line 2, characters 2-17:
2 | ((names (a b c))
^^^^^^^^^^^^^^^
Error: Atom expected
My goal is just to write several example programs to learn ocaml. All the .ml files are in a single directory. If reorganizing things would help then I could do that, but it's not clear how to do that either.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions