private void CompileFloatConstant(Parser parser, ByteBuffer buffer, FloatConstant floatConstant, bool outputUsed) { if (!outputUsed) throw new ParserException(floatConstant.FirstToken, "This expression doesn't do anything."); buffer.Add(floatConstant.FirstToken, OpCode.LITERAL, parser.GetFloatConstant(floatConstant.Value)); }
protected override void TranslateFloatConstant(List<string> output, FloatConstant floatConstant) { output.Add(Util.FloatToString(floatConstant.Value)); }
protected abstract void TranslateFloatConstant(List<string> output, FloatConstant floatConstant);