diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-04-06 11:23:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 13:23:44 -0300 |
commit | e92b4504d5930234c852bf0fba8f5663ad4809e7 (patch) | |
tree | 128c1859cedbcac407b2f7da7daeb0ef20001c1d /src/parser/tptp | |
parent | da03399e50e33acd4d4a6534205a67d03f44f4c1 (diff) |
Fix tptp parser for negative rational (#6297)
Diffstat (limited to 'src/parser/tptp')
-rw-r--r-- | src/parser/tptp/Tptp.g | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser/tptp/Tptp.g b/src/parser/tptp/Tptp.g index f6b845212..0f21cdb20 100644 --- a/src/parser/tptp/Tptp.g +++ b/src/parser/tptp/Tptp.g @@ -1764,6 +1764,7 @@ NUMBER } | SIGN[pos]? num=DECIMAL SLASH den=DECIMAL { std::stringstream ss; + ss << ( pos ? "" : "-" ); ss << AntlrInput::tokenText($num) << "/" << AntlrInput::tokenText($den); PARSER_STATE->d_tmp_expr = SOLVER->mkReal(ss.str()); } |