@uml
Consume and return the {@linkplain #getCurrentToken current symbol}.
<p>E.g., given the following input with {@code A} being the current
lookahead symbol, this function moves the cursor to {@code B} and returns
{@code A}.</p>
<pre>
A B
^
</pre>
If the parser is not in error recovery mode, the consumed symbol is added
to the parse tree using {@link ParserRuleContext#addChild(Token)}, and
{@link ParseTreeListener#visitTerminal} is called on any parse listeners.
If the parser <em>is</em> in error recovery mode, the consumed symbol is
added to the parse tree using
{@link ParserRuleContext#addErrorNode(Token)}, and
{@link ParseTreeListener#visitErrorNode} is called on any parse
listeners.
@uml Consume and return the {@linkplain #getCurrentToken current symbol}.
<p>E.g., given the following input with {@code A} being the current lookahead symbol, this function moves the cursor to {@code B} and returns {@code A}.</p>
<pre> A B ^ </pre>
If the parser is not in error recovery mode, the consumed symbol is added to the parse tree using {@link ParserRuleContext#addChild(Token)}, and {@link ParseTreeListener#visitTerminal} is called on any parse listeners. If the parser <em>is</em> in error recovery mode, the consumed symbol is added to the parse tree using {@link ParserRuleContext#addErrorNode(Token)}, and {@link ParseTreeListener#visitErrorNode} is called on any parse listeners.