File: jcfbaseconsts.pas

package info (click to toggle)
lazarus 4.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 275,760 kB
  • sloc: pascal: 2,341,904; xml: 509,420; makefile: 348,726; cpp: 93,608; sh: 3,387; java: 609; perl: 297; sql: 222; ansic: 137
file content (160 lines) | stat: -rw-r--r-- 9,278 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
unit jcfbaseConsts;

{$mode objfpc}{$H+}

interface

resourcestring
  //Settings caption and error messages
  lisTheSettingsFileDoesNotExist = 'The settings file "%s" does not exist.%s'+
    'The formatter will work better if it is configured to use a valid settings file';
  lisErrorWritingSettingsFileReadOnly = 'Error writing settings file: %s is read only';
  lisErrorWritingSettingsException = 'Error writing settings file %s:%s%s';
  lisNoSettingsFound = 'No settings found';

const
  //Parser messages
  lisMsgAbortedAfter = 'Aborted after %d file(s)';
  lisMsgAbortedDueToError = 'Aborted due to error';
  lisMsgAssignmentToFuncionNameIsDeprecated = 'Assignment to the function name "%s" is deprecated, Use assignment to "Result"';
  lisMsgAtLineCol = '%s at line %d col %d';
  lisMsgBackup = 'Backup';
  lisMsgBadBackupMode = 'TCodeFormatSettings.Output: bad backup mode ';
  lisMsgBadFileRecurseType = 'TConverter.Convert: Bad file recurse type';
  lisMsgCannotConvertStringToBoolean = 'Cannot convert string [%s] to boolean';
  lisMsgCaseStatmentHasNoElseCase = 'Case statement has no else case';
  lisMsgChangesWhereMade = '%s: %d changes were made';
  lisMsgCommentHasPrefixButCannotBeParsed = 'Comment "%s" has prefix but cannot be parsed';
  lisMsgCouldNorRenameSourceFile = 'TFileConverter.ProcessFile: could not rename source file %s to %s';
  lisMsgCouldNotReadBooleanSetting = 'Could not read boolean setting';
  lisMsgCouldNotReadFloatSetting = 'Could not read float setting';
  lisMsgCouldNotReadIntegerSetting = 'Could not read integer setting';
  lisMsgDestroyShoultNotBeCalled = 'Destroy should not normally be called. You may want to use FreeAndNil(MyObj), or MyObj.Free, or MyForm.Release';
  lisMsgDirectoryDoesNotExist = 'The directory %s does not exist';
  lisMsgDuplicateDefaultWord = 'TSetAnyWordCaps.Read: duplicate default word: %s';
  lisMsgEmptyBeginEndBlock = 'Empty begin..end block';
  lisMsgEmptyExceptEndBlock = 'Empty except..end block';
  lisMsgEmptyFinallyEndBlock = 'Empty finally..end block';
  lisMsgEmptyTryBlock = 'Empty try block';
  lisMsgExceptionClassMsg = 'Exception %s  %s';
  lisMsgWarningClassMsg = 'Warning %s %s';
  lisMsgImbalancedParseDisable = 'Imbalanced number of: //jcf:parse=off/on';
  lisMsgExceptionParsing = 'Exception parsing "%s": %s';
  lisMsgExceptionTokenising = 'Exception tokenising "%s": %s';
  lisMsgExistsAlreadyRemoveIt = '%s %s %s exists already. Remove it?';
  lisMsgExpressionHasTrailingTokens = 'Expression has trailing tokens';
  lisMsgFailedToDelete = 'TFileConverter.ProcessFile: Failed to delete %s %s %s';
  lisMsgFile = 'file';
  lisMsgFiles = '%d file(s)';
  lisMsgFinishedProcessing = 'Finished processing %d file(s)';
  lisMsgFormattingFile = 'Formatting file %s';
  lisMsgIdentifierCaps = 'Identifier caps';
  lisMsgImbalancedBracketStarComment = 'Imbalanced bracket star comment!';
  lisMsgImbalancedCurlyBracketComment = 'Imbalanced curly bracket comment!';
  lisMsgIn = '%s in %s';
  lisMsgIncludeFile = 'Include file: %s  %s';
  lisMsgInCommentSettingIsNotKnown = 'In comment "%s" , setting "%s" is not known';
  lisMsgInCommentStateCannotBeParsedToOnOff = 'In comment  "%s" , state "%s" cannot be parsed to either on or off';
  lisMsgName = 'name: ';
  lisMsgNear = '%s near %s';
  lisMsgNear2 = 'Near %s';
  lisMsgNoLogFileFoundAt = 'No log file found at %s';
  lisMsgNonIdentifierCaps = 'Non-identifier caps';
  lisMsgNoOutputBackupFileSpecified = 'No output/backup file specified';
  lisMsgNoSourceToParse = 'No source to parse';
  lisMsgNothingDone = 'Nothing done';
  lisMsgNotValidFloatingPointString = 'Str2Float: %s is not a valid floating point string';
  lisMsgOneChangeWasMade = '%s: One change was made: %s';
  lisMsgOnLine = 'on line %d';
  lisMsgOutput = 'Output';
  lisMsgParameterIsNotUsed = 'Parameter %s is not used';
  lisMsgPosition = '%s position %d';
  lisMsgPreprocessorExpressionCouldNotBeParsed = 'Preprocessor expression could not be parsed';
  lisMsgPreprocessorTermCouldNotBeParsed = 'Preprocessor term could not be parsed';
  lisMsgProcessingDirectory = 'Processing directory %s';
  lisMsgReal48TypeUsed = 'Real48 type used. This type is obsolete and is seldom useful';
  lisMsgRealTypeUsed = 'Real type used. This type is obsolete and is seldom useful';
  lisMsgReplaceChangesWereMade = 'Replace: %d changes were made';
  lisMsgSelectAFile = 'Select a file';
  lisMsgSpacesToEnd = 'Spaces to end is %d on %s at %s line is ';
  lisMsgSpecificWordCaps = 'Specific word caps';
  lisMsgTheFileDoesNotExist = 'The file "%s" does not exist';
  lisMsgTheFileIsEmpty = 'The file "%s" is empty';
  lisMsgTo = '%s to %s';
  lisMsgTooManyChildNodes = 'Too many child nodes %d';
  lisMsgUnableToRecoverImbalancedBracketStarComment = 'Unable to recover from imbalanced bracket star comment.';
  lisMsgUnableToRecoverImbalancedCurlyComment = 'Unable to recover from imbalanced curly comment.';
  lisMsgUnhandledErrorInSourceCode = 'Unhandled error in source code!';
  lisMsgUnitNameCaps = 'Unit name caps';
  lisMsgUnknownFileContentType = 'Unknown file content type: %d';
  lisMsgUnterminatedString = 'Unterminated string: %s' ;
  lisMsgUsesClauseFindReplace = 'Uses clause find/replace: %d changes were made';
  lisMsgUsesClauseInsertion = 'Uses clause insertion: %d insertions were made';
  lisMsgUsesClauseRemoval = 'Uses clause removal: %d removals were made';
  lisMsgValue = 'value: ';

  lisExpectedCompilerDirective = 'Expected compiler directive ';
  lisMsgExpectedArraySetFileOrRecordType = 'Expected array, set, file or record type';
  lisMsgExpectedAsmIdentifier = 'Expected asm identifier';
  lisMsgExpectedAsmOpcode = 'Expected asm opcode';
  lisMsgExpectedAsmParam = 'Expected asm param';
  lisMsgExpectedClassProcedureOrClassFunction = 'Expected class procedure or class function';
  lisMsgExpectedConstTypeVarProcedureOrFunction = 'Expected const, type, var, procedure or function';
  lisMsgExpectedEqualsOrColon = 'Expected equals or colon';
  lisMsgExpectedExceptOrFinally = 'Expected except or finally';
  lisMsgExpectedExportDirective = 'Expected export directive';
  lisMsgExpectedIdentifier = 'Expected identifier';
  lisMsgExpectedInitializationBeginOrEnd = 'Expected initialization, begin or end';
  lisMsgExpectedLabelConstTypeVarProcedureOrFunction = 'Expected label, const, type, var, procedure or function';
  lisMsgExpectedObjectClassOrInterface = 'Expected object, class or interface';
  lisMsgExpectedProcedureOrFunction = 'Expected procedure or function';
  lisMsgExpectedProcedureOrFunctionType = 'Expected procedure or function type';
  lisMsgExpectedProgramPackageLibraryUnit = 'Expected program, package, library, unit, ''.inc'' got "%s" ';
  lisMsgExpectedPropertySpecifier = 'Expected property specifier';
  lisMsgExpectedSimpleStatement = 'Expected simple statement';
  lisMsgExpectedStructuredStatement = 'Expected structured statement';

  lisMsgUnexpectedEOF = 'Unexpected EOF.';
  lisMsgUnexpectedPreprocessorSymbol = 'Unexpected preprocessor symbol';
  lisMsgUnexpectedToken = 'Unexpected token';
  lisMsgUnexpectedTokenExpected = 'Unexpected token "%s", expected %s';
  lisMsgUnexpectedTokenExpectedSingleChar = 'Unexpected token, expected single char after ^';
  lisMsgUnexpectedTokenInAddOp = 'Unexpected token in add op';
  lisMsgUnexpectedTokenInFactor = 'Unexpected token in factor';
  lisMsgUnexpectedTokenInMulOp = 'Unexpected token in mul op';
  lisMsgUnexpectedTokenInRecogniseAnonymousMethod = 'Unexpected token recognising anonymous method';
  lisMsgUnexpectedTokenInRelOp = 'Unexpected token in rel op';

  lisMsgStatsBasicNumbers = 'Basic numbers and averages: ';
  lisMsgStatsLinesLong = 'Unit is %d lines long';
  lisMsgStatsUnitHasTokens = 'Unit has %d tokens in %d characters: ';
  lisMsgStatsCharsPerToken = '%s chars per token';
  lisMsgStatsCharsPerLine = '%s chars per line ';
  lisMsgStatsTokensPerLine = '%s tokens per line ';
  lisMsgStatsCommentsIn = '%d comments in %d characters ';
  lisMsgStatsCharsPerComment = '%s chars per comment';
  lisMsgStatsCharsAreComments = '%s of chars are comments';
  lisMsgStatsSpacingAndReturnTokens = '%d spacing and return tokens in %d characters';
  lisMsgStatsCharsAreSpacing = '%s of chars are spacing';
  lisMsgStatsSolidTokens = '%d solid tokens in %d characters ';
  lisMsgStatsCharsAreSolid = '%s of chars are solid';
  lisMsgStatsTokensAreSolid = '%s of tokens are solid';
  lisMsgStatsConstants = '%d constants';
  lisMsgStatsTypes = '%d types';
  lisMstStatsClasses = '%d classes';
  lisMsgStatsInterfaces = '%d interfaces';
  lisMsgStatsProcedures = '%d procedures';
  lisMsgStatsGlobalVarsInInterface = '%d global vars in interface';
  lisMsgStatsGlobalVarsInRestOfUnit = '%d global vars in rest of unit';
  lisMsgStatsProceduresInInterface = '%d procedures in interface';

const  // internal errors don't localize.
  lisMsgDeleteBackNotAllowedInStackMode = 'TSourceTokenList: Delete back not allowed in Stack mode';
  lisMsgJCFInternalErrorUnexpectedErrorInSourceCode = 'JCF Internal Error. Unexpected error in source code';
  lisMsgJCFInternalErrorUnexpectedNilPointer = 'JCF Internal Error. Unexpected NIL pointer';
  lisMsgInsertBackNotAllowedInStackMode = 'TSourceTokenList: Insert back not allowed in Stack mode';

implementation

end.