tlang-runtime-compiler/ByteCodeTest/Program.cs

10 lines
258 B
C#
Raw Normal View History

2023-07-29 00:11:09 +00:00
using TLang.BytecodeCompiler;
using TLang.Common;
using TLang.Parser;
var res=Parse.ParseFromFiles("app.tlang");
using(var f = File.Create("app.tvm"))
{
ByteCodeGenerator.GenerateToStream(res,f,new TLangVersion(1,0,0,0),new TLangVersion(1,0,0,0));
}