Share via


TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>.Required Method

Definition

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the expected token is required.

protected internal bool Required (TSymbolType expected, bool errorIfNotFound, string errorBase);
member this.Required : 'SymbolType * bool * string -> bool
Protected Friend Function Required (expected As TSymbolType, errorIfNotFound As Boolean, errorBase As String) As Boolean

Parameters

expected
TSymbolType

The expected token.

errorIfNotFound
Boolean

true to display an error if not found; otherwise, false.

errorBase
String

The error base.

Returns

true if the expected token is required; otherwise, false.

Applies to