jplevyak / dparser

A Scannerless GLR parser/parser generater.
https://github.com/jplevyak/dparser
BSD 3-Clause "New" or "Revised" License
105 stars 14 forks source link

How to run tests? Does not work with CMake, does not work with test_parser #35

Open barracuda156 opened 1 year ago

barracuda156 commented 1 year ago

Trying to run tests from CMake runs nothing. Trying the binary, it also does nothing:

--->  Testing dparser
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_dparser/dparser/work/build" && /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_dparser/dparser/work/build/test_parser -vt 
Test DParser Version 1.30.4ab9d43046e5d22ffb365ec5f5184a7cfee09b30 Copyright (c) 2002-2013 John Plevyak
Usage: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_dparser/dparser/work/build/test_parser [flags|args]
  -l, --longest_match     toggle   false     Use Longest Match Rule for Tokens
  -T, --tokenizer         toggle   false     Tokenizer for START
  -C, --whitespace_states toggle   true      Compute Whitespace States
  -A, --all_states        toggle   false     Compute States For All NTERMs
  -b, --scanner_blocks    int      4         Scanner Blocks
  -p, --op_pri_from_rule  toggle   false     Set Operator Priority From Rule
  -r, --right_recurse_BNF toggle   false     Use Right Recursion For */+
  -S, --start_state       int      0         Start State
  -s, --save_parse_tree   toggle   true      Save Parse Tree
  -p, --partial_parses    toggle   false     Partial Parses
  -c, --compare_stacks    toggle   true      Compare Stacks
  -i, --commit_interval   int      100       Commit Interval
  -f, --fixup             toggle   true      Fixup Internal Productions
  -e, --fixup_ebnf        toggle   false     Fixup EBNF Productions
  -H, --noheight          toggle   false     Do not use Height Disambiguization
  -G, --nogreedy          toggle   false     Do not use Greedy Disambiguization
  -v, --verbose           incr     1         Verbose
  -t, --test              incr     1         Test
  -d, --debug             incr     0         Debug
  -h, --help                                 Help
Command failed:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_dparser/dparser/work/build" && /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_dparser/dparser/work/build/test_parser -vt 
Exit code: 1