Сообщения об ошибках в описании языка
Eugene Lachinov
Санкт-Петербург
Сейчас на английском, планируется ли локализация этих сообщений ?
Комментарии
SLangNotFound := 'Language ''%s'' not found';
SInvalidLanguage := 'Invalid language definition';
SIdRedeclared := 'Identifier redeclared: ';
SUnknownType := 'Unknown type: ';
SIncompatibleTypes := 'Incompatible types';
SIdUndeclared := 'Undeclared identifier: ';
SClassRequired := 'Class type required';
SIndexRequired := 'Index required';
SStringError := 'Strings doesn''t have properties or methods';
SClassError := 'Class %s does not have a default property';
SArrayRequired := 'Array type required';
SVarRequired := 'Variable required';
SNotEnoughParams := 'Not enough actual parameters';
STooManyParams := 'Too many actual parameters';
SLeftCantAssigned := 'Left side cannot be assigned to';
SForError := 'For loop variable must be numeric variable';
SEventError := 'Event handler must be a procedure';
<errors>
<err1 text="Identifier expected"/>
<err2 text="Expression expected"/>
<err3 text="Statement expected"/>
<err4 text="':' expected"/>
<err5 text="';' expected"/>
<err6 text="'.' expected"/>
<err7 text="')' expected"/>
<err8 text="']' expected"/>
<err9 text="'=' expected"/>
<err10 text="'BEGIN' expected"/>
<err11 text="'END' expected"/>
<err12 text="'OF' expected"/>
<err13 text="'THEN' expected"/>
<err14 text="'UNTIL' expected"/>
<err15 text="'TO' or 'DOWNTO' expected"/>
<err16 text="'DO' expected"/>
<err17 text="'FINALLY' or 'EXCEPT' expected"/>
<err18 text="'[' expected"/>
<err19 text="'..' expected"/>
<err20 text="'>' expected"/>
</errors>
[code]
BASIC_GRAMMAR =
'<?xml version="1.0"?><language text="BasicScript"><parser><commentline1 ' +
'text="''"/><commentline2 text="rem"/><commentblock1 text="/\,/\"/><comme' +
'ntblock2 text="/\,/\"/><stringquotes text="""/><hexsequence text="0x' +
'"/><declarevars text="0"/><skipeol text="0"/><skipchar text="_"/><keywor' +
'ds><addressof/><and/><as/><byref/><byval/><case/><catch/><delete/><dim/>' +
'<do/><else/><elseif/><end/><endif/><exit/><finally/><for/><function/><if' +
'/><imports/><is/><loop/><mod/><new/><next/><not/><or/><rem/><return/><se' +
'lect/><set/><step/><sub/><then/><to/><try/><wend/><while/><with/><xor/><' +
'/keywords><errors><err1 text="Identifier expected"/><err2 text="Expressi' +
'on expected"/><err3 text="End of line expected"/><err4 text="'':'' expec' +
'ted"/><err5 text="'';'' expected"/><err6 text="''.'' expected"/><err7 te' +
'xt="'')'' expected"/><err8 text="'']'' expected"/><err9 text="''='' expe' +
'cted"/><err10 text="''TO'' expected"/><err11 text="''END'' expected"/><e' +