﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MultiParser.Matchers;
using MultiParser.Nodes;
using MultiParser.Matchers.Wrappers;

namespace MultiParser {
	public class EntryPoint {
		public static void Main(string[] args) {
			PredefinedMatchers.Reconstruct();

			MatchResult r = PredefinedMatchers.expr.Match("-124*(-15)-1/1*1*(1*-1)-(1)");
			NodeBase b = r.result;
			NodeBase.Print(b);

			Console.WriteLine();
			Console.WriteLine("error caught         : '" + r.errored + "'");
			Console.WriteLine("left over from input : '" + r.output + "'");
			Console.WriteLine("parsed value raw     : '" + b.Value() + "'");
			Console.ReadLine();
		}
	}
}
