Mercurial > projects > dil
comparison trunk/src/dil/Messages.d @ 533:2a8d0ed0d71e
Improved error reporting in dil.Converter.
Added isNewline(dchar c) to dil.LexerFuncs.
Added 4 messages to struct MSG in dil.Messages.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Mon, 17 Dec 2007 17:35:38 +0100 |
parents | 135e9e6933a7 |
children | d9e328c3bab9 |
comparison
equal
deleted
inserted
replaced
532:50e64bab9c7a | 533:2a8d0ed0d71e |
---|---|
103 | 103 |
104 /// Collection of error messages with no MID yet. | 104 /// Collection of error messages with no MID yet. |
105 struct MSG | 105 struct MSG |
106 { | 106 { |
107 static: | 107 static: |
108 // Converter: | |
109 auto InvalidUTF16Character = "invalid UTF-16 character '\\u{:X4}'."; | |
110 auto InvalidUTF32Character = "invalid UTF-32 character '\\U{:X8}'."; | |
111 auto UTF16FileMustBeDivisibleBy2 = "the byte length of a UTF-16 source file must be divisible by 2."; | |
112 auto UTF32FileMustBeDivisibleBy4 = "the byte length of a UTF-32 source file must be divisible by 4."; | |
108 // Parser messages: | 113 // Parser messages: |
109 auto ExpectedIdAfterTypeDot = "expected identifier after '(Type).', not '{}'"; | 114 auto ExpectedIdAfterTypeDot = "expected identifier after '(Type).', not '{}'"; |
110 auto ExpectedModuleIdentifier = "expected module identifier, not '{}'"; | 115 auto ExpectedModuleIdentifier = "expected module identifier, not '{}'"; |
111 auto IllegalDeclaration = "illegal Declaration found: "; | 116 auto IllegalDeclaration = "illegal Declaration found: "; |
112 auto ExpectedFunctionName = "expected function name, not '{}'"; | 117 auto ExpectedFunctionName = "expected function name, not '{}'"; |