add is directive

This commit is contained in:
artem3213212 committed 2019-07-07 21:11:24 +03:00
1 parent 5e518e1eed
commit cdb0fce106
3 files changed
+8 -5

No files matched your search

+1
View File
@@ -89,6 +89,7 @@ type
end;
function IsComment(s:string):boolean;
function IsDirective(s:string):boolean;
function IsName(s:string):boolean;
function IsString(const s:string):boolean;
+4 -3
View File
@@ -58,9 +58,10 @@ Has constructor Create with input: `TStrings`, GetComments: `boolean=True` and s
Helper functions to analyze token text.
* IsName(s: `string`): `boolean` Check for valid identifier (can be reserved word too).
* IsComment(s: `string`): `boolean` Check for valid comment.
* IsString(s: `string`): `boolean` Check for string constant.
* IsName(s: `string`): `boolean` Check is identifier (can be reserved word too).
* IsComment(s: `string`): `boolean` Check is comment.
* IsDirective(s: `string`): `boolean` Check is compiler directive.
* IsString(s: `string`): `boolean` Check is string constant.
## Author
+3 -2
View File
@@ -58,8 +58,9 @@ TAGToken это тип `record` из:
Вспомогательные функции для анализа текста.
* IsName(s: `string`): `boolean` Проверка что идентификатор правильный.
* IsComment(s: `string`): `boolean` Проверка что комментарий правильный.
* IsName(s: `string`): `boolean` Проверка что это идентификатор.
* IsComment(s: `string`): `boolean` Проверка что это комментарий.
* IsDirective(s: `string`): `boolean` Проверка что это директива компилятора.
* IsString(s: `string`): `boolean` Проверка что это строковое значение.
## Авторы