package apz.co203;

/*
    Ass1.java

    The executable class, this class reads the expression
*/

public class Ass1
{
    public static void main(String[] args) throws Exception
    {
        if (args.length == 0)
            System.out.println("No expression given!");
        else
        {
            Element[] values = Analyse.parseExpression(args[0]);
            System.out.println("Analysis complete");
            for(int i=0; i<values.length; i++)
                System.out.println(values[i].getChar() + "\t" + values[i].getValue());

        }
    }

}

