I'm making a programming language because I'm bored. The grammar used in the programming language is different from the grammar on the market, so can you make a code editor? It's okay to simply be a Code Highlighter with a Sublime text level. Also, if possible, I would appreciate it if you could tell me how to automatically close it when opening parentheses or quotation marks, or how to do the automatic completion function.
codeeditor python programming-language
1. "Can you do ~ on Python?""
If you're creating a programming language, you know this is a very amateurish question. What you're actually asking is
Can you implement an editor application in Python that can highlight, format, or lint certain types of language syntax that are dependent on specific grammar?
It is.
2. Can you make that happen?
Then, I think we can start with whether the syntax rule of the new programming language is established in the first place. Since you mentioned sublime text, please use the officially supported custom syntax definition to succeed in that step.
Then you can find a good open-source formatter, to study the source of how syntax works. And then... After successfully implementing the basic editor app, combining the two will be the end of the story.
Good luck.
© 2024 OneMinuteCode. All rights reserved.