diff options
author | Li Jin <dragon-fly@qq.com> | 2019-09-12 16:12:20 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2019-09-12 16:12:20 +0800 |
commit | 50353c1456324e7bd3c130fceaf400aed7880a41 (patch) | |
tree | 0afe5823040dc9fc9ab39a9d7f4af647c061d7c1 /MoonParser/parser.cpp | |
parent | 4e6f4e8124316866a08f9ddf3322fde87abc3c21 (diff) | |
download | yuescript-50353c1456324e7bd3c130fceaf400aed7880a41.tar.gz yuescript-50353c1456324e7bd3c130fceaf400aed7880a41.tar.bz2 yuescript-50353c1456324e7bd3c130fceaf400aed7880a41.zip |
spec/assign.moon and spec/bubbling.moon compiled
Diffstat (limited to 'MoonParser/parser.cpp')
-rw-r--r-- | MoonParser/parser.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/MoonParser/parser.cpp b/MoonParser/parser.cpp index 2378abe..03857c6 100644 --- a/MoonParser/parser.cpp +++ b/MoonParser/parser.cpp | |||
@@ -1143,10 +1143,8 @@ expr expr::operator !() const { | |||
1143 | @param e end position. | 1143 | @param e end position. |
1144 | */ | 1144 | */ |
1145 | input_range::input_range(const pos &b, const pos &e) : | 1145 | input_range::input_range(const pos &b, const pos &e) : |
1146 | m_begin(b), | 1146 | m_begin(b), |
1147 | m_end(e) | 1147 | m_end(e) {} |
1148 | { | ||
1149 | } | ||
1150 | 1148 | ||
1151 | 1149 | ||
1152 | /** constructor. | 1150 | /** constructor. |
@@ -1155,10 +1153,8 @@ input_range::input_range(const pos &b, const pos &e) : | |||
1155 | @param t error type. | 1153 | @param t error type. |
1156 | */ | 1154 | */ |
1157 | error::error(const pos &b, const pos &e, int t) : | 1155 | error::error(const pos &b, const pos &e, int t) : |
1158 | input_range(b, e), | 1156 | input_range(b, e), |
1159 | m_type(t) | 1157 | m_type(t) {} |
1160 | { | ||
1161 | } | ||
1162 | 1158 | ||
1163 | 1159 | ||
1164 | /** compare on begin position. | 1160 | /** compare on begin position. |