Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gdscript entry in new parser docs #3206

Merged
merged 1 commit into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/parser-gdscript.rst
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.
1 change: 1 addition & 0 deletions docs/parsers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This section deals with individual parser topics.
parser-asm.rst
parser-cmake.rst
parser-cxx.rst
parser-gdscript.rst
parser-html.rst
parser-puppetManifest.rst
parser-python.rst
Expand Down