-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat: added C++ port of TypeScript PythonLexerBase for Python 3.13 #4440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: added C++ port of TypeScript PythonLexerBase for Python 3.13 #4440
Conversation
Thanks for this, but the code doesn't compile/link. Correcting the compilation errors, it crashes. The first thing you'll need to do is to fit this into the build because as is, nothing is compiled/linked or tested for the Cpp target. You need these changes.
Applying this, these are the changes you need to perform to your code.
You will need to place this file, transformGrammar.py, in the Cpp/ directory along with ParserLexerBase.h and ParserLexerBase.cpp.
|
@kaby76 ok, I see. This is because I used the TypeScript version as a source and it contains class inherited from PythonLexer, not from Lexer. Will try the changes you suggested in a couple of days |
That doesn't sound right because PythonLexerBase is derived from Lexer not PythonLexer in the TypeScript port:
|
@kaby76 should i hold on this one before merging? |
@teverett Hold please. The PR is not being teated and it contains many compilation issues. |
@kaby76 I applied modifications you mentioned and was able to compile the code on my machine. Also, I fixed some typos which led to segfaults. Could you approve the workflow to test my changes, please? P. S. sorry for being late, had too much work( |
@teverett Could we get a build of this PR? Thanks! |
Ported missing PythonParseBase from TypeScript to C++.
This is needed so that one can create fully working Python parser.