/
smwwiki
/
OneScript_fork
Обзор
Документация
Войти
/
smwwiki
/
OneScript_fork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/OneScript.Language/LexicalAnalysis/Token.cs
155 строк
3 KB
Andrei Ovsiankin
Поддержка меток в парсере
19 окт 2023, 11:56
19 окт 2023, 11:56
4735767
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ namespace OneScript.Language.LexicalAnalysis { public enum Token { NotAToken, // structure VarDef, Procedure, EndProcedure, Function, EndFunction, If, Then, Else, ElseIf, EndIf, For, While, Each, To, In, Loop, EndLoop, Break, Continue, Return, Try, Exception, RaiseException, EndTry, EndOfText, Export, Execute, AddHandler, RemoveHandler, Async, Await, Goto, // operators Plus, Minus, UnaryPlus, UnaryMinus, Multiply, Division, Modulo, Equal, MoreThan, LessThan, MoreOrEqual, LessOrEqual, NotEqual, And, Or, Not, Dot, OpenPar, ClosePar, OpenBracket, CloseBracket, NewObject, // special chars Comma, StringQuote, DateQuote, Semicolon, Question, // modifiers ByValParam, // built-in functions // must be declared last Eval, Bool, Number, Str, Date, Type, ValType, StrLen, TrimL, TrimR, TrimLR, Left, Right, Mid, StrPos, UCase, LCase, TCase, Chr, ChrCode, EmptyStr, StrReplace, StrGetLine, StrLineCount, StrEntryCount, Year, Month, Day, Hour, Minute, Second, BegOfWeek, BegOfYear, BegOfMonth, BegOfDay, BegOfHour, BegOfMinute, BegOfQuarter, EndOfWeek, EndOfYear, EndOfMonth, EndOfDay, EndOfHour, EndOfMinute, EndOfQuarter, WeekOfYear, DayOfYear, DayOfWeek, AddMonth, CurrentDate, Integer, Round, Log, Log10, Sin, Cos, Tan, ASin, ACos, ATan, Exp, Pow, Sqrt, Min, Max, Format, ExceptionInfo, ExceptionDescr, ModuleInfo } }