]> git.lizzy.rs Git - metalua.git/commitdiff
fixed require in synth sample
authorAlexander Gladysh <agladysh@gmail.com>
Thu, 22 Jan 2009 06:19:33 +0000 (09:19 +0300)
committerAlexander Gladysh <agladysh@gmail.com>
Thu, 22 Jan 2009 06:19:33 +0000 (09:19 +0300)
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))