1*48b36a76SDavid Yu Yang.. _gdscript: 2*48b36a76SDavid Yu Yang 3*48b36a76SDavid Yu Yang====================================================================== 4*48b36a76SDavid Yu YangThe new GDScript parser 5*48b36a76SDavid Yu Yang====================================================================== 6*48b36a76SDavid Yu Yang 7*48b36a76SDavid Yu YangThe GDScript parser is written using the token based Python parser as a base 8*48b36a76SDavid Yu Yangdue to similarities with the Python language. Some adjustments have been made 9*48b36a76SDavid Yu Yangfor the differences between GDScript and Python. A short list of major 10*48b36a76SDavid Yu Yangdifferences: 11*48b36a76SDavid Yu Yang 12*48b36a76SDavid Yu Yang- Files are classes. All symbols are attributes of the class defined by the 13*48b36a76SDavid Yu Yang file. 14*48b36a76SDavid Yu Yang- There are no functions because all symbols are class attributes, so all 15*48b36a76SDavid Yu Yang "functions" are methods. 16*48b36a76SDavid Yu Yang- Variables are explicitly declared with the `var` keyword. 17*48b36a76SDavid Yu Yang- Enum, signal and const keywords are added. 18