public VariableList FunctionParam() { var list = new VariableList(); var type = this.BaseType(); var token = this.lexer.ConsumeIdentifier(); type = this.TypeSuffix(type); list.Var = this.ParameterDeclaration(token.StrValue, type); return(list); }
public LocalVariable ParameterDeclaration(string name, Type type) { var val = new LocalVariable(name, 0); var list = new VariableList(); val.Type = type; list.Var = val; list.Next = this.Locals; this.Locals = list; return(val); }