Skip to content
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

fix Util::parse_to_qore_value() to support single-element lists and empty hashes #3138

Closed
davidnich opened this issue Nov 24, 2018 · 0 comments
Assignees
Milestone

Comments

@davidnich
Copy link
Contributor

ex:

david@greybeard:~/src/qore/git/qore/qlib$ qore -l Util -nX 'parse_to_qore_value("1,")'
1
david@greybeard:~/src/qore/git/qore/qlib$ qore -l Util -nX 'parse_to_qore_value("{},")'
unhandled QORE System exception thrown in TID 1 at 2018-11-24 08:04:21.921404 Sat +01:00 (CET) in <anonymous closure>() (/Users/david/src/Qorus/test/qlib/Util.qm:705, user code)
RUNTIME-OVERLOAD-ERROR: no variant matching 'parse_to_qore_value(NOTHING) can be found; the following variants were tested:
   parse_to_qore_value(string arg)
call stack:
  2: <anonymous closure>() (/Users/david/src/Qorus/test/qlib/Util.qm:705, user code)
  1: parse_to_qore_value() (<command-line>:1, user code)
david@greybeard:~/src/qore/git/qore/qlib$ qore -l Util -nX 'parse_to_qore_value("{}")'
unhandled QORE System exception thrown in TID 1 at 2018-11-24 08:04:27.147651 Sat +01:00 (CET) in <anonymous closure>() (/Users/david/src/Qorus/test/qlib/Util.qm:705, user code)
RUNTIME-OVERLOAD-ERROR: no variant matching 'parse_to_qore_value(NOTHING) can be found; the following variants were tested:
   parse_to_qore_value(string arg)
call stack:
  2: <anonymous closure>() (/Users/david/src/Qorus/test/qlib/Util.qm:705, user code)
  1: parse_to_qore_value() (<command-line>:1, user code)
@davidnich davidnich added this to the 0.9 milestone Nov 24, 2018
@davidnich davidnich self-assigned this Nov 24, 2018
davidnich added a commit that referenced this issue Dec 5, 2018
…_value

refs #3138 improved Util::parse_to_qore_value()
@davidnich davidnich added the fixed label Dec 5, 2018
davidnich added a commit that referenced this issue Dec 25, 2018
davidnich added a commit that referenced this issue Dec 26, 2018
…value_empty_bracket_fix

refs #3138 fixed parse_to_qore_value() with empty bracket expressions…
pvanek added a commit that referenced this issue Jan 23, 2019
…value_fix

refs #3138 fixed nested paren parsing in parse_to_qore_value(), added…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant