/// <summary>
 /// Initializes a new instance of the <see cref="SpiceToken"/> class.
 /// </summary>
 public SpiceToken(SpiceTokenType tokenType, string lexem, int lineNumber = 0, int startColumnIndex = 0, string fileName = null)
     : base((int)tokenType, lexem, lineNumber, startColumnIndex, fileName)
 {
     SpiceTokenType = tokenType;
 }
 /// <summary>
 /// Checks whether the SPICE token is given type.
 /// </summary>
 /// <param name="token">A token to check.</param>
 /// <param name="type">A given type.</param>
 /// <returns>
 /// True if <paramref name="token"/> is given type.
 /// </returns>
 public static bool Is(this SpiceToken token, SpiceTokenType type)
 {
     return(token.SpiceTokenType == type);
 }