Show / Hide Table of Contents

Class SpiceTokenExtensions

Extensions for SpiceToken class.

Inheritance
System.Object
SpiceTokenExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SpiceSharpParser.Lexers.Netlist.Spice
Assembly: SpiceSharpParser.dll
Syntax
public static class SpiceTokenExtensions

Methods

| Improve this Doc View Source

Equal(SpiceToken, String, Boolean)

Checks whether the SPICE token has specified lexem.

Declaration
public static bool Equal(this SpiceToken token, string lexem, bool caseSensitive)
Parameters
Type Name Description
SpiceToken token

A token to check.

System.String lexem

A given lexem.

System.Boolean caseSensitive

Is lexem case sensitive.

Returns
Type Description
System.Boolean

True if token has specified lexem.

| Improve this Doc View Source

Is(SpiceToken, SpiceTokenType)

Checks whether the SPICE token is given type.

Declaration
public static bool Is(this SpiceToken token, SpiceTokenType type)
Parameters
Type Name Description
SpiceToken token

A token to check.

SpiceTokenType type

A given type.

Returns
Type Description
System.Boolean

True if token is given type.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX