public CExpression Application(CExpression fn, List <CExpression> list) { return(new Application { Function = fn, Arguments = list }); }
public Stat DoWhileStatement(Stat doBody, CExpression expr) { return(new DoWhileStat { Body = doBody, Expression = expr, }); }
public Stat WhileStatement(CExpression expr, Stat whileBody) { return(new WhileStat { Expression = expr, Body = whileBody }); }
public int GetValue(CExpression cExpression) { if (cExpression != null) { value = Convert.ToInt32(cExpression.Accept(ceval)); } return(value++); }
public CExpression PostIncrement(CExpression e, CTokenType token) { return(new IncrementExpression { Expression = e, Incrementor = token, Prefix = false }); }
public virtual CExpression Bin(CTokenType op, CExpression left, CExpression right) { return(new CBinaryExpression { Operation = op, Left = left, Right = right }); }
public CExpression Conditional(CExpression cond, CExpression consequent, CExpression alternant) { return(new ConditionalExpression { Condition = cond, Consequent = consequent, Alternative = alternant, }); }
public CExpression PtrMemberAccess(CExpression e, string fieldName) { return(new MemberExpression { Expression = e, Dereference = true, FieldName = fieldName, }); }
public Stat ForStatement(Stat init, CExpression test, CExpression incr, Stat forBody) { return(new ForStat { Initializer = init, Test = test, Update = incr, Body = forBody }); }
public CExpression Unary(CTokenType operation, CExpression expr) { return(new CUnaryExpression { Operation = operation, Expression = expr }); }
public Enumerator Enumerator(string id, CExpression init) { return(new Enumerator { Name = id, Value = init }); }
public Declarator ArrayDeclarator(Declarator decl, CExpression expr) { return(new ArrayDeclarator { Declarator = decl, Size = expr }); }
public FieldDeclarator FieldDeclarator(Declarator decl, CExpression bitField) { return(new FieldDeclarator { Declarator = decl, FieldSize = bitField }); }
public Label CaseLabel(CExpression constExpr) { return(new CaseLabel { Value = constExpr }); }
public int VisitExpression(CExpression stm) { throw new NotImplementedException(); }
public CExpression PreIncrement(CTokenType token, CExpression uexpr) { throw new NotImplementedException(); }
public CExpression Cast(CType type, CExpression exp) { return(new CastExpression { Type = type, Expression = exp }); }
public Stat SwitchStatement(CExpression expr, Stat switchBody) { throw new NotImplementedException(); }
public Stat IfStatement(CExpression expr, Stat consequence, Stat alternative) { throw new NotImplementedException(); }
public CExpression Sizeof(CExpression sexp) { return(new SizeofExpression { Expression = sexp }); }
internal Initializer ExpressionInitializer(CExpression expr) { return(new ExpressionInitializer { Expression = expr }); }
public CExpression ArrayAccess(CExpression e, CExpression idx) { throw new NotImplementedException(); }
public Stat ExprStatement(CExpression expr) { return(new ExprStat { Expression = expr }); }
public Stat ReturnStatement(CExpression expr) { return(new ReturnStat { Expression = expr }); }
public CExpression Application(CExpression e) { throw new NotImplementedException(); }