@NullMarked
public class Parser
extends Object
Parser takes a list of
Token
s and parses them into
Stmt
s that can be later interpreted.
-
Constructor Summary
Constructors
Creates an instance for a desired list of
Token
s.
-
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
Token
s.
- Parameters:
tokens
- the Token
s for the program
-
Method Details
-
parse
- Returns:
- the parsing result