using ShintenScript; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShintenScriptTest { class ScaffoldLexer : Lexer { Queue tokenQueue; public ScaffoldLexer(IEnumerable queue) : base("") { tokenQueue = new Queue(queue); } public override Token ParseOne() { if (tokenQueue.Count == 0) return new Token { type = Token.Type.EOF }; return tokenQueue.Dequeue(); } } }