Is there a stand alone GDScript parser/lexer?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By aggsol
:warning: Old Version Published before Godot 3 was released.

If I wanted to use GDScript for other puproses, is there a library or something similar?

:bust_in_silhouette: Reply From: Zylann

No, but you can tell the Godot executable to run standalone GDScripts by using command line arguments: Command line tutorial — Godot Engine (latest) documentation in English

:bust_in_silhouette: Reply From: henriquelalves

GDScript is actually a C++ Module in Godot; since the entire engine is MIT licensed, than yes, you can just get the module and use it for your on purposes.

You can check the entirety of the GDScript module (including the compiler, parser and tokenizer) on this link: https://github.com/godotengine/godot/tree/master/modules/gdscript

It is worth mentioning that since GDScript is a C++ module created with Godot in mind, all of its functionalities are tied with Godot Engine. You would have to change lot of things on its compiler to make it work as a standalone language, even if this makes sense.

I thought about it as a language to embedd in other C++ programms as it is in broad usage already. Many embeddable scripting languages (except Lua) are not that well adopted.

aggsol | 2017-01-18 07:45