Canon/Canon.Core/LexicalParser/Lexer.cs

14 lines
275 B
C#
Raw Normal View History

using Canon.Core.Abstractions;
2024-03-10 19:48:34 +08:00
namespace Canon.Core.LexicalParser;
public class Lexer : ILexer
2024-03-10 19:48:34 +08:00
{
public IEnumerable<SemanticToken> Tokenize(ISourceReader reader)
{
LexerStateMachine machine = new(reader);
return machine.Run();
2024-03-10 19:48:34 +08:00
}
}