diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-06-12 20:52:04 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-06-12 21:16:08 +0800 |
commit | 37a949e634c4d9c47f7dabb579ddcfc23a89b0a6 (patch) | |
tree | ad1d8a5a10c646a7f653def9e5c1f7e7136b9bc7 /liblll/Parser.cpp | |
parent | b86b084bc68e50ba71ba398c3ecb7ad2c28ececb (diff) | |
download | dexon-solidity-37a949e634c4d9c47f7dabb579ddcfc23a89b0a6.tar.gz dexon-solidity-37a949e634c4d9c47f7dabb579ddcfc23a89b0a6.tar.zst dexon-solidity-37a949e634c4d9c47f7dabb579ddcfc23a89b0a6.zip |
liblll: allow macros with no arguments
Diffstat (limited to 'liblll/Parser.cpp')
-rw-r--r-- | liblll/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/liblll/Parser.cpp b/liblll/Parser.cpp index 44d2a2ae..a3962df4 100644 --- a/liblll/Parser.cpp +++ b/liblll/Parser.cpp @@ -109,7 +109,7 @@ void dev::eth::parseTreeLLL(string const& _s, sp::utree& o_out) qi::rule<it, space_type, sp::utree::list_type()> mstore = '[' > element > ']' > -qi::lit(":") > element; qi::rule<it, space_type, sp::utree::list_type()> sstore = qi::lit("[[") > element > qi::lit("]]") > -qi::lit(":") > element; qi::rule<it, space_type, sp::utree::list_type()> calldataload = qi::lit("$") > element; - qi::rule<it, space_type, sp::utree::list_type()> list = '(' > +element > ')'; + qi::rule<it, space_type, sp::utree::list_type()> list = '(' > *element > ')'; qi::rule<it, space_type, sp::utree()> extra = sload[tagNode<2>()] | mload[tagNode<1>()] | sstore[tagNode<4>()] | mstore[tagNode<3>()] | seq[tagNode<5>()] | calldataload[tagNode<6>()]; element = atom | list | extra; |