From: Alexander Gladysh Date: Thu, 22 Jan 2009 06:19:33 +0000 (+0300) Subject: fixed require in synth sample X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=350bfd5e9eae6fd46ccfd9de74fd8b0375fd22c0;p=metalua.git fixed require in synth sample --- diff --git a/src/samples/synth.mlua b/src/samples/synth.mlua index e572b4b..01090ee 100644 --- a/src/samples/synth.mlua +++ b/src/samples/synth.mlua @@ -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))