Commit b7ddc26c authored by Sarah Spall's avatar Sarah Spall Committed by Vikram Narayanan

committing new main file

parent 03407376
#include "lcd_ast.h"
#include "lcd_idl.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
int main(int argc, char ** argv)
{
if(argc != 2)
{
printf("error in number of args\n");
exit(0);
}
try
{
char * file = argv[1];
Module * tree = (Module *) Parser::parse(std::string(file));
printf("we have a tree\n");
}
catch (const Parser::ParseException e)
{
printf("caught an exception\n");
std::cout << e.getReason();
exit(0);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment