diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-09-11 17:59:53 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-09-11 17:59:53 +0800 |
| commit | e958b59c9635f0a01e29e3f30c34adecd327cc1f (patch) | |
| tree | 000d56180b091bf9e14444935fbee0b0a28867cf /src | |
| parent | 85b9ec82247f6e06b802188af35d09d3159625df (diff) | |
| download | yuescript-e958b59c9635f0a01e29e3f30c34adecd327cc1f.tar.gz yuescript-e958b59c9635f0a01e29e3f30c34adecd327cc1f.tar.bz2 yuescript-e958b59c9635f0a01e29e3f30c34adecd327cc1f.zip | |
revert binary operator rules, change implicit object start symbol.
Diffstat (limited to '')
| -rw-r--r-- | src/MoonP/moon_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MoonP/moon_parser.cpp b/src/MoonP/moon_parser.cpp index 53a6b8f..394ce50 100644 --- a/src/MoonP/moon_parser.cpp +++ b/src/MoonP/moon_parser.cpp | |||
| @@ -332,7 +332,7 @@ MoonParser::MoonParser() { | |||
| 332 | expr(">>") | | 332 | expr(">>") | |
| 333 | expr("//") | | 333 | expr("//") | |
| 334 | set("+-*/%><|&~"); | 334 | set("+-*/%><|&~"); |
| 335 | exp_op_value = (White >> not_(unary_operator) | Space) >> BinaryOperator >> *SpaceBreak >> backcall_exp; | 335 | exp_op_value = Space >> BinaryOperator >> *SpaceBreak >> backcall_exp; |
| 336 | Exp = Seperator >> backcall_exp >> *exp_op_value; | 336 | Exp = Seperator >> backcall_exp >> *exp_op_value; |
| 337 | 337 | ||
| 338 | ChainValue = Seperator >> (Chain | Callable) >> -existential_op >> -InvokeArgs; | 338 | ChainValue = Seperator >> (Chain | Callable) >> -existential_op >> -InvokeArgs; |
| @@ -432,7 +432,7 @@ MoonParser::MoonParser() { | |||
| 432 | 432 | ||
| 433 | TableBlockInner = Seperator >> KeyValueLine >> *(+SpaceBreak >> KeyValueLine); | 433 | TableBlockInner = Seperator >> KeyValueLine >> *(+SpaceBreak >> KeyValueLine); |
| 434 | TableBlock = +SpaceBreak >> Advance >> ensure(TableBlockInner, PopIndent); | 434 | TableBlock = +SpaceBreak >> Advance >> ensure(TableBlockInner, PopIndent); |
| 435 | TableBlockIndent = sym('#') >> Seperator >> KeyValueList >> -sym(',') >> | 435 | TableBlockIndent = sym('*') >> Seperator >> KeyValueList >> -sym(',') >> |
| 436 | -(+SpaceBreak >> Advance >> ensure(KeyValueList >> -sym(',') >> *(+SpaceBreak >> KeyValueLine), PopIndent)); | 436 | -(+SpaceBreak >> Advance >> ensure(KeyValueList >> -sym(',') >> *(+SpaceBreak >> KeyValueLine), PopIndent)); |
| 437 | 437 | ||
| 438 | class_member_list = Seperator >> KeyValue >> *(sym(',') >> KeyValue); | 438 | class_member_list = Seperator >> KeyValue >> *(sym(',') >> KeyValue); |
