BadScript 2
Loading...
Searching...
No Matches
BadBooleanToken.cs
Go to the documentation of this file.
2
7
12{
17 public BadBooleanToken(BadSourcePosition position) : base(position) { }
18
20 public override BadPrimitiveType Type => BadPrimitiveType.Boolean;
21
25 public bool Value => bool.Parse(Text);
26}
Describes a specific position inside a source file.
string Text
The Text Representation of the Token.
Definition BadToken.cs:27
Implements a Token that represents a Boolean.
BadBooleanToken(BadSourcePosition position)
Constructs a new Boolean Token.
Contains Shared Data Structures and Functionality.
BadPrimitiveType
Primitive Types.
Contains the Primitive Tokens for the BadScript2 Language.