Skip to content

Add Kotoba v1 runtime (Token, CharStream, ATN-less Tiny lexer) - #4973

Open
com-junkawasaki wants to merge 1 commit into
antlr:devfrom
kotoba-lang:cursor/kotoba-runtime-b136
Open

Add Kotoba v1 runtime (Token, CharStream, ATN-less Tiny lexer)#4973
com-junkawasaki wants to merge 1 commit into
antlr:devfrom
kotoba-lang:cursor/kotoba-runtime-b136

Conversation

@com-junkawasaki

Copy link
Copy Markdown

Lands runtime/Kotoba next to runtime/{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 / .stg and no Java tool changes.

Fork PR (same branch): kotoba-lang#1

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants