13 Commits

Author SHA1 Message Date
Alessandro Pasotti 8dead89026 FEATURE: multiple actions
Also fixes the incompatibility between store_into and scan and action:
when the three methods above were called, being all based on the
(unique) action, the last one would overwrite the previous ones.

This issue was making the parser strictly dependant on the order
of the scan/store_into/action calls making them mutually exclusive.
2024-05-09 09:53:34 +02:00
Arthur LAURENT 6723c81877 update test to use module when WITH_MODULE macro is set 2023-10-15 18:51:56 +02:00
Pranav Srinivas Kumar 6c7da857b6 Added table of contents to README and clang formatted code 2022-09-20 20:27:24 -07:00
Yoshihiro Hokazono b869b5a209 NArgsPattern -> nargs_pattern (to snake case) 2022-06-22 07:07:59 +09:00
Yoshihiro Hokazono 08943f47ab Merge branch 'master' into feature/variable-length-nargs 2022-06-21 08:36:33 +09:00
Yoshihiro Hokazono 12fcae66a7 Prefer pre-const to post-const 2022-06-21 06:48:13 +09:00
Sean Robinson 2b05334a3c Run Argumnet::action functor for zero-parameter arguments
Previously, only arguments with one or more parameters would run actions.
But, at times it can be useful to run an action when an argument does not
expect any parameters.

Closes #104

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2021-10-27 09:02:33 -07:00
Yoshihiro Hokazono bec93acaa7 Avoid use ALL_CAPS for enumerators 2021-09-16 08:01:26 +09:00
Yoshihiro Hokazono aae2e9347a Add another test for remaining 2021-09-16 08:01:23 +09:00
Yoshihiro Hokazono 2cfe115dfb Change test for remaining to test for * nargs 2021-09-16 08:01:22 +09:00
Pranav Srinivas Kumar 33101e7972 Closes #73 2020-05-08 14:35:05 -05:00
Zhihao Yuan 1af8b826c8 Annotate test cases with doctest::test_suite
This change also explicitly lists the source files
for CMake.  This is because `GLOB` does not remove
old files when switching branches in Git, and
`CONFIGURE_DEPENDS` will add unstaged files after
stashing.

See also: https://cmake.org/cmake/help/latest/command/file.html#glob
2019-11-21 14:24:50 -06:00
Pranav Srinivas Kumar f9ab33d1a6 Closes #53 2019-11-21 09:08:49 -06:00