Canon/Canon.Core/LexicalParser/Lexer.cs

14 lines
275 B
C#

using Canon.Core.Abstractions;
namespace Canon.Core.LexicalParser;
public class Lexer : ILexer
{
public IEnumerable<SemanticToken> Tokenize(ISourceReader reader)
{
LexerStateMachine machine = new(reader);
return machine.Run();
}
}