diff --git a/src/Expression.cpp b/src/Expression.cpp index 28c2a2d49..f8ea6b8c0 100644 --- a/src/Expression.cpp +++ b/src/Expression.cpp @@ -761,8 +761,14 @@ void Expression::expand_pattern () } //////////////////////////////////////////////////////////////////////////////// -// Convert: [:=] -// To: = lex +// +----------------+ +----------+ +------+ +---------+ +// | : | | | | = | | | +// +----------------+ +----------+ +------+ +---------+ +// | | --> | | | op | | exp | +// +----------------+ +----------+ +------+ +---------+ +// | attr | | attr | | attr | | attr | +// +----------------+ +----------+ +------+ +---------+ +// void Expression::expand_attr () { Arguments temp; @@ -786,7 +792,7 @@ void Expression::expand_attr () temp.push_back (Triple (name, "lvalue", arg->_third)); temp.push_back (Triple ("=", "op", arg->_third)); - temp.push_back (Triple (value, "rvalue", arg->_third)); + temp.push_back (Triple (value, "exp", arg->_third)); delta = true; } else @@ -801,8 +807,14 @@ void Expression::expand_attr () } //////////////////////////////////////////////////////////////////////////////// -// Convert: .[:=] -// To: lex +// +----------------------+ +----------+ +-------+ +---------------+ +// | .: | | | | | | | +// +----------------------+ +----------+ +-------+ +---------------+ +// | | --> | | | op | | exp/string/rx | +// +----------------------+ +----------+ +-------+ +---------------+ +// | attr | | attr | | attr | | attr | +// +----------------------+ +----------+ +-------+ +---------------+ +// void Expression::expand_attmod () { Arguments temp; @@ -830,13 +842,13 @@ void Expression::expand_attmod () { temp.push_back (Triple (name, "lvalue", arg->_third)); temp.push_back (Triple ("<", "op", arg->_third)); - temp.push_back (Triple (value, "rvalue", arg->_third)); + temp.push_back (Triple (value, "exp", arg->_third)); } else if (mod == "after" || mod == "over" || mod == "above") { temp.push_back (Triple (name, "lvalue", arg->_third)); temp.push_back (Triple (">", "op", arg->_third)); - temp.push_back (Triple (value, "rvalue", arg->_third)); + temp.push_back (Triple (value, "exp", arg->_third)); } else if (mod == "none") { @@ -854,13 +866,13 @@ void Expression::expand_attmod () { temp.push_back (Triple (name, "lvalue", arg->_third)); temp.push_back (Triple ("=", "op", arg->_third)); - temp.push_back (Triple (value, "rvalue", arg->_third)); + temp.push_back (Triple (value, "exp", arg->_third)); } else if (mod == "isnt" || mod == "not") { temp.push_back (Triple (name, "lvalue", arg->_third)); temp.push_back (Triple ("!=", "op", arg->_third)); - temp.push_back (Triple (value, "rvalue", arg->_third)); + temp.push_back (Triple (value, "exp", arg->_third)); } else if (mod == "has" || mod == "contains") {