diff options
author | Li Jin <dragon-fly@qq.com> | 2021-12-17 17:33:38 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-12-17 17:33:38 +0800 |
commit | 05ef9bb1ffefbc717f3fb4738f3683b3cb09a82e (patch) | |
tree | 163878ad9edab0408ad5fc46b1b9f02b473eb0ac /src | |
parent | 2138d176edfe1f8ba3ecee211f15825e97f0570a (diff) | |
download | yuescript-0.9.5.tar.gz yuescript-0.9.5.tar.bz2 yuescript-0.9.5.zip |
eliminate some ambiguous syntax.v0.9.5
Diffstat (limited to '')
-rwxr-xr-x | src/yuescript/yue_compiler.cpp | 2 | ||||
-rwxr-xr-x | src/yuescript/yue_parser.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index 15a785a..6295eb7 100755 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp | |||
@@ -60,7 +60,7 @@ using namespace parserlib; | |||
60 | 60 | ||
61 | typedef std::list<std::string> str_list; | 61 | typedef std::list<std::string> str_list; |
62 | 62 | ||
63 | const std::string_view version = "0.9.4"sv; | 63 | const std::string_view version = "0.9.5"sv; |
64 | const std::string_view extension = "yue"sv; | 64 | const std::string_view extension = "yue"sv; |
65 | 65 | ||
66 | class YueCompilerImpl { | 66 | class YueCompilerImpl { |
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index 9257fab..03639c3 100755 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp | |||
@@ -236,7 +236,7 @@ YueParser::YueParser() { | |||
236 | Switch = Space >> key("switch") >> disable_do(Exp) >> -(Space >> key("do")) | 236 | Switch = Space >> key("switch") >> disable_do(Exp) >> -(Space >> key("do")) |
237 | >> -Space >> Break >> SwitchBlock; | 237 | >> -Space >> Break >> SwitchBlock; |
238 | 238 | ||
239 | IfCond = disable_chain(Exp >> -Assign); | 239 | IfCond = disable_do_chain(disable_arg_table_block(Exp >> -Assign)); |
240 | IfElseIf = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("elseif") >> IfCond >> plain_body_with("then"); | 240 | IfElseIf = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("elseif") >> IfCond >> plain_body_with("then"); |
241 | IfElse = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("else") >> plain_body; | 241 | IfElse = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("else") >> plain_body; |
242 | IfType = (expr("if") | expr("unless")) >> not_(AlphaNum); | 242 | IfType = (expr("if") | expr("unless")) >> not_(AlphaNum); |