Class Parser


  • public class Parser
    extends java.lang.Object
    The Parser will read a series of Tokens and build a Program. Note that this is not a compiler and does not "understand" the program.
    • Constructor Detail

      • Parser

        public Parser​(java.util.Queue<Token> tokens)
    • Method Detail

      • readLine

        public java.util.Optional<Line> readLine​(Program program)
      • readStatement

        public Statement readStatement()
      • expectNumber

        public java.util.Optional<java.lang.Integer> expectNumber()