comparison src/dil/parser/Parser.d @ 829:55c463c57d3a

Fixed variable argument parameter issue.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 01 Jul 2008 22:52:54 +0200
parents fde064aca673
children
comparison
equal deleted inserted replaced
828:5b4d28d229e2 829:55c463c57d3a
17 import dil.Enums; 17 import dil.Enums;
18 import dil.CompilerInfo; 18 import dil.CompilerInfo;
19 import dil.SourceText; 19 import dil.SourceText;
20 import dil.Unicode; 20 import dil.Unicode;
21 import common; 21 import common;
22
23 import tango.core.Vararg;
22 24
23 /// The Parser produces a full parse tree by examining 25 /// The Parser produces a full parse tree by examining
24 /// the list of tokens provided by the Lexer. 26 /// the list of tokens provided by the Lexer.
25 class Parser 27 class Parser
26 { 28 {
4118 4120
4119 /// Creates an error report and appends it to a list. 4121 /// Creates an error report and appends it to a list.
4120 /// Params: 4122 /// Params:
4121 /// token = used to get the location of where the error is. 4123 /// token = used to get the location of where the error is.
4122 /// formatMsg = the compiler error message. 4124 /// formatMsg = the compiler error message.
4123 void error_(Token* token, char[] formatMsg, TypeInfo[] _arguments, Arg _argptr) 4125 void error_(Token* token, char[] formatMsg, TypeInfo[] _arguments, va_list _argptr)
4124 { 4126 {
4125 if (trying) 4127 if (trying)
4126 { 4128 {
4127 ++errorCount; 4129 ++errorCount;
4128 return; 4130 return;