1 --------------------------------------------------------------------------------
2 -- Copyright (c) 2006-2013 Fabien Fleutot and others.
4 -- All rights reserved.
6 -- This program and the accompanying materials are made available
7 -- under the terms of the Eclipse Public License v1.0 which
8 -- accompanies this distribution, and is available at
9 -- http://www.eclipse.org/legal/epl-v10.html
11 -- This program and the accompanying materials are also made available
12 -- under the terms of the MIT public license which accompanies this
13 -- distribution, and is available at http://www.lua.org/license.html
16 -- Fabien Fleutot - API and implementation
18 --------------------------------------------------------------------------------
20 local compile = require 'metalua.compiler.bytecode.compile'
21 local ldump = require 'metalua.compiler.bytecode.ldump'
25 M.ast_to_proto = compile.ast_to_proto
26 M.proto_to_bytecode = ldump.dump_string
27 M.proto_to_file = ldump.dump_file