Add Kotoba v1 runtime (Token, CharStream, ATN-less Tiny lexer) - #4973
Open
com-junkawasaki wants to merge 1 commit into
Open
Add Kotoba v1 runtime (Token, CharStream, ATN-less Tiny lexer)#4973com-junkawasaki wants to merge 1 commit into
com-junkawasaki wants to merge 1 commit into
Conversation
Land a first-class runtime/Kotoba tree next to the other language runtimes. Kotoba cannot FFI the Java runtime, and a full ATN/DFA port plus Java-tool codegen is too large for one PR, so v1 is the smallest useful subset that still matches the other runtime layouts. Token, Interval, Vocabulary, CharStream, and an ATN-less lexer scan the vendored Tiny.g4 fixture. scripts/test.sh compiles .kotoba to wasm with kotoba 0.7.2 and runs the fixture suite. The Java tool is unchanged. Signed-off-by: Cursor Agent <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lands
runtime/Kotobanext toruntime/{CSharp,Cpp,Dart,Go,Java,JavaScript,Python3,Swift}.Kotoba cannot FFI the Java runtime. v1 is Token / Interval / Vocabulary / CharStream plus an ATN-less lexer for a vendored Tiny grammar. No
KotobaTarget/.stgand no Java tool changes.Fork PR (same branch): kotoba-lang#1