Skip to content

Commit

Permalink
Merge pull request #3206 from Davidy22/docs
Browse files Browse the repository at this point in the history
Add gdscript entry in new parser docs
  • Loading branch information
masatake committed Dec 1, 2021
2 parents c7c19ac + 48b36a7 commit b6a5682
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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

0 comments on commit b6a5682

Please sign in to comment.