-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3206 from Davidy22/docs
Add gdscript entry in new parser docs
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. _gdscript: | ||
|
||
====================================================================== | ||
The new GDScript parser | ||
====================================================================== | ||
|
||
The GDScript parser is written using the token based Python parser as a base | ||
due to similarities with the Python language. Some adjustments have been made | ||
for the differences between GDScript and Python. A short list of major | ||
differences: | ||
|
||
- Files are classes. All symbols are attributes of the class defined by the | ||
file. | ||
- There are no functions because all symbols are class attributes, so all | ||
"functions" are methods. | ||
- Variables are explicitly declared with the `var` keyword. | ||
- Enum, signal and const keywords are added. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters