BadScript 2
Loading...
Searching...
No Matches
BadNumberToken.cs
Go to the documentation of this file.
2
4
9{
14 public BadNumberToken(BadSourcePosition position) : base(position) { }
15
17 public override BadPrimitiveType Type => BadPrimitiveType.Number;
18
22 public decimal Value => decimal.Parse(Text);
23}
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 Number.
BadNumberToken(BadSourcePosition position)
Constructs a new Number Token.
Contains Shared Data Structures and Functionality.
BadPrimitiveType
Primitive Types.
Contains the Primitive Tokens for the BadScript2 Language.