FuncallExpression
using CLanguage.Interpreter;
using CLanguage.Types;
using CLanguage.Interpreter;
using CLanguage.Types;
namespace CLanguage.Syntax
{
public class SequenceExpression : Expression
{
public Expression First { get; set; } = first;
public Expression Second { get; set; } = second;
public SequenceExpression(Expression first, Expression second)
{
}
public override CType GetEvaluatedCType(EmitContext ec)
{
return Second.GetEvaluatedCType(ec);
}
protected override void DoEmit(EmitContext ec)
{
First.Emit(ec);
ec.Emit(OpCode.Pop);
Second.Emit(ec);
}
public override string ToString()
{
return "(" + First + ", " + Second + ")";
}
}
}