]> git.lizzy.rs Git - metalua.git/blobdiff - src/samples/synth.mlua
fixed require in synth sample
[metalua.git] / src / samples / synth.mlua
index e572b4bcf24e8b16055f4bc860144986a289f581..01090eee14161821917e170052861487b1b60377 100644 (file)
@@ -553,8 +553,8 @@ end
 -- Read a file, get its AST, use synth to regenerate sources
 -- from that AST
 --------------------------------------------------------------------------------
-require 'mlc'
+require 'metalua.compiler'
 local filename = (arg[2] or arg[1]) or arg[0]
 local ast = mlc.luafile_to_ast (filename)
 
-print(synth.run(ast)) 
\ No newline at end of file
+print(synth.run(ast))