15 lines
278 B
C#
15 lines
278 B
C#
using System.IO;
|
|
using System;
|
|
using Tools;
|
|
|
|
public class ex
|
|
{
|
|
public static void Main(string[] argv) {
|
|
Parser p = new syntax();
|
|
StreamReader s = new StreamReader(argv[0]);
|
|
S ast = (S)p.Parse(s);
|
|
if (ast!=null)
|
|
Console.WriteLine((int)ast.yylval);
|
|
}
|
|
}
|