Loading files
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.
// Copyright (c) IxMilia. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using IxMilia.Step.Tokens;
namespace IxMilia.Step.Syntax
{
internal class StepRealSyntax : StepSyntax
{
public override StepSyntaxType SyntaxType => StepSyntaxType.Real;
public double Value { get; }
public StepRealSyntax(double value)
: base(-1, -1)
{
Value = value;
}
public StepRealSyntax(StepRealToken value)
: base(value.Line, value.Column)
{
Value = value.Value;
}
public override IEnumerable<StepToken> GetTokens()
{
yield return new StepRealToken(Value, -1, -1);
}
}
}