public void Parse(List <TokenRecord> tokens) { _tokensList = tokens; ErrorList = new List <string>(); try { ProgramRoot = ParseProgram(); } catch (InvalidOperationException e) { // End of code! Console.WriteLine(e); } }
public ProgramBuilder() { _programRule = new ProgramRule(); }