tvcutsem / es-lab

Automatically exported from code.google.com/p/es-lab
23 stars 10 forks source link

Need EvalExpr AST type #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, the direct eval operator syntax

    eval(foo)

parses into

    ["CallExpr",
      {},
      ["IdExpr",
        {
          "name":"eval"
        }
      ],
      ["IdExpr",
        {
          "name":"foo"
        }
      ]
    ]

However, because the semantics of this form may be a direct eval operator,
which is very different from a CallExpr, it should have its own AST type, say

    ["EvalExpr",
      {},
      ["IdExpr",
        {
          "name":"foo"
        }
      ]
    ]

Original issue reported on code.google.com by erights on 25 Dec 2009 at 5:43

GoogleCodeExporter commented 9 years ago
Fixed in r99.

Original comment by to...@google.com on 8 Jan 2010 at 1:27