@NullMarked
public class Parser
extends Object
Parser takes a list of
Tokens and parses them into
Stmts that can be later interpreted.
-
Constructor Summary
Constructors
Creates an instance for a desired list of
Tokens.
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Parser
Creates an instance for a desired list of
Tokens.
- Parameters:
tokens - the Tokens for the program
-
Method Details
-
parse
- Returns:
- the parsing result