private void CompileBooleanNot(Parser parser, ByteBuffer buffer, BooleanNot boolNot, bool outputUsed) { if (!outputUsed) throw new ParserException(boolNot.FirstToken, "Cannot have this expression here."); this.CompileExpression(parser, buffer, boolNot.Root, true); buffer.Add(boolNot.FirstToken, OpCode.BOOLEAN_NOT); }
protected override void TranslateBooleanNot(List<string> output, BooleanNot booleanNot) { output.Add("not ("); this.TranslateExpression(output, booleanNot.Root); output.Add(")"); }
protected abstract void TranslateBooleanNot(List<string> output, BooleanNot booleanNot);