ablego/grammars/io.mzhang.ableGo/Compiler/Main.sv
2022-12-16 08:17:03 -06:00

16 lines
359 B
Systemverilog

imports io:mzhang:ableGo:ConcreteSyntax as cst;
function main
IOVal<Integer> ::= args::[String] ioIn::IOToken
{
local fileName :: String = head(args);
local result :: IO<Integer> = do {
text :: String <- readFile(fileName);
return 123;
};
return evalIO(result, ioIn);
}
parser AbleGoParser :: cst:Root { io:mzhang:ableGo:ConcreteSyntax; }