/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.2
src/OneScript.Language/LexicalAnalysis/DefaultLexer.cs
24 строки
764 B
Andrei Ovsiankin
Разрешено использование комментариев в строке с директивой Использовать
17 июн 2025, 19:05
17 июн 2025, 19:05
6d0eb1a
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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 { /// <summary> /// Лексер, который выдает все, кроме комментариев. /// </summary> public class DefaultLexer : FullSourceLexer { public override Lexem NextLexem() { Lexem lex; while((lex = base.NextLexem()).Type == LexemType.Comment) ; // skip return lex; } } }