Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlc.check_ast fails at checking an AST #16

Closed
KINFOO opened this issue Aug 9, 2012 · 1 comment
Closed

mlc.check_ast fails at checking an AST #16

KINFOO opened this issue Aug 9, 2012 · 1 comment

Comments

@KINFOO
Copy link
Collaborator

KINFOO commented Aug 9, 2012

Hi,

I'm on origin/luaeclipse, when generating an AST on faulty code. mlc.check_ast is not able to check it.

M> local ast = mlc.luastring_to_ast('local =') local status, error = mlc.check_ast(ast)
Evaluation error:
lib/metalua/treequery/walk.mlua:154: Invalid binders list
stack traceback:
    [C]: in function 'assert'
    lib/metalua/treequery/walk.mlua:154: in function <lib/metalua/treequery/walk.mlua:148>
    (tail call): ?
    lib/metalua/treequery/walk.mlua:72: in function '?'
    lib/metalua/treequery/walk.mlua:171: in function 'stat'
    lib/metalua/treequery/walk.mlua:121: in function '?'
    lib/metalua/treequery/walk.mlua:171: in function 'f'
    compiler/mlc.mlua:69: in function <compiler/mlc.mlua:44>
    (tail call): ?
    stdin:1: in main chunk
    [C]: in function 'xpcall'
    /d/metalua/build/lib/metalua/metaloop.mlua:56: in function 'run'
    compiler/metalua.mlua:251: in function 'main'
    compiler/metalua.mlua:258: in main chunk
    (tail call): ?
    [C]: ?
@KINFOO
Copy link
Collaborator Author

KINFOO commented Sep 5, 2012

This is fixed with 9a7c92b.
@fab13n Close this issue, if you are satisfied with the fix.

@KINFOO KINFOO closed this as completed Sep 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant