mirror of https://github.com/tbklang/tlang.git
Lexer re-work #104
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
Dependencies
No dependencies set.
Reference: tlang/tlang#104
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is this?
The point of this feature request is to work on re-working the lexer with a few stages and in order of how they should be completed:
interface
(see issue #105)lexer/
directoryLexerInterface
nextToken()
,previousToken()
,getCurrentToken()
etcToken
andLexerException
should be moved into a general directory alongside theLexerInterface
moduleLexerInterface
Parser re-workto Lexer re-work🔐️ Locking for now till I stabilize stuff and onboard @rany
Work has begun on translating the current lexer over to the
LexerInterface
API...It passes unit tests, test cases in CI/CD also pass ✅
Todo
Parser
toLexer
incore.d
Lexer
fromcore.d
toBasicLexer
inbasic.d
core.d
import (publically)tokens.d
,exceptions.d
etc.BasicLexer
inbasics.d
importtlang.compiler.lexer.core
All done, and I have created an issue (#106) for @rany to work on when we stabalise hopefully by October ish.
API all there.
As for the current lexer, I have transformed it over to th
LexerInterface
API and it works (unit tests and test cases CI are good ✅ )