-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup and new tests #87
Commits on Jul 6, 2024
-
Cppo_eval.mli: make the type [env] abstract.
Cppo_eval.ml: make the type [env] an algebraic data type. This avoids some confusion, as the constructors [`Def] and [`Defun] were previously used in two different types, namely [node] and [env], with different arguments.
Configuration menu - View commit details
-
Copy full SHA for 6acbb18 - Browse repository at this point
Copy the full SHA 6acbb18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32f6e24 - Browse repository at this point
Copy the full SHA 32f6e24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 937f1bd - Browse repository at this point
Copy the full SHA 937f1bdView commit details
Commits on Jul 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5a6208d - Browse repository at this point
Copy the full SHA 5a6208dView commit details -
Cppo_eval: remove a dead test.
Here, [args] is never empty, so [n] is never zero, so this test is useless.
Configuration menu - View commit details
-
Copy full SHA for cf90d41 - Browse repository at this point
Copy the full SHA cf90d41View commit details -
Cppo_types, cppo_parser, cppo_eval: simplify the type of [`Ident].
In the definition of [`Ident] in the type [node], the third parameter used to have type [actuals option]: it was either [None] or [Some args] where [args] was a nonempty list of actuals. It is simpler to let this parameter have type [actuals]. There is no need for an option.
Configuration menu - View commit details
-
Copy full SHA for e15d4d0 - Browse repository at this point
Copy the full SHA e15d4d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b503c97 - Browse repository at this point
Copy the full SHA b503c97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a7a2bd - Browse repository at this point
Copy the full SHA 1a7a2bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6889b9 - Browse repository at this point
Copy the full SHA c6889b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b746a4 - Browse repository at this point
Copy the full SHA 4b746a4View commit details -
The file test/dune is modified to use more modern rule syntax. This changes the generated .opam files. The purpose of this change is to allow negative tests. `with-accepted-exit-codes` requires dune 2.0.
Configuration menu - View commit details
-
Copy full SHA for 8b0bceb - Browse repository at this point
Copy the full SHA 8b0bcebView commit details -
New positive tests: lexical.cppo New negative tests: arity_mismatch.cppo applied_to_none.cppo expects_no_args.cppo already_defined.cppo at_least_one_arg.cppo
Configuration menu - View commit details
-
Copy full SHA for c9d8738 - Browse repository at this point
Copy the full SHA c9d8738View commit details -
Cppo_eval: remove the distinction between [EDef] and [EDefun].
There was no strong reason for this distinction to exist. A few new auxiliary functions are isolated: [bind_one], [bind_many]. A few error messages change slightly (they become more uniform). The expected test output is adjusted in a separate commit.
Configuration menu - View commit details
-
Copy full SHA for d2f93b8 - Browse repository at this point
Copy the full SHA d2f93b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 794fd2c - Browse repository at this point
Copy the full SHA 794fd2cView commit details -
Remove the distinction between [
Def] and [
Defun].There was no strong reason for this distinction to exist.
Configuration menu - View commit details
-
Copy full SHA for 4c94688 - Browse repository at this point
Copy the full SHA 4c94688View commit details
Commits on Jul 13, 2024
-
dune-project: records that cppo_ocamlbuild needs dune 2.0 too.
Maybe this is not necessary, but it seems safer.
Configuration menu - View commit details
-
Copy full SHA for f9f246d - Browse repository at this point
Copy the full SHA f9f246dView commit details