[Pydev-code] Embedding python in a DSL in PyDev
Brought to you by:
fabioz
|
From: Cynebeald <cyn...@na...> - 2009-03-25 15:01:44
|
Hello, I'd like to ask how hard it would be to embed python in another language (RenPy). That language has mostly it's own syntax (indentation based), but it's possible to switch to pure python (either starting a statement with $, or putting code in a python: block). Or to put it another way, RenPy is syntactic sugar to a python API, but it's possible to use the API (and python) directly. I tried opening a rpy file in PyDev, and syntax highlighting works OK, but the parser chokes on the first line because it encounters some special syntax it doesn't understand. Could this be scripted via jython, or will it be necessary to go into pydev sources? Regards, Cynebeald |