Skip to content

Commit 48b36a7

Browse files
committed
Add gdscript entry in new parser docs
1 parent 1d9e6fe commit 48b36a7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/parser-gdscript.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.. _gdscript:
2+
3+
======================================================================
4+
The new GDScript parser
5+
======================================================================
6+
7+
The GDScript parser is written using the token based Python parser as a base
8+
due to similarities with the Python language. Some adjustments have been made
9+
for the differences between GDScript and Python. A short list of major
10+
differences:
11+
12+
- Files are classes. All symbols are attributes of the class defined by the
13+
file.
14+
- There are no functions because all symbols are class attributes, so all
15+
"functions" are methods.
16+
- Variables are explicitly declared with the `var` keyword.
17+
- Enum, signal and const keywords are added.

docs/parsers.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This section deals with individual parser topics.
1515
parser-asm.rst
1616
parser-cmake.rst
1717
parser-cxx.rst
18+
parser-gdscript.rst
1819
parser-html.rst
1920
parser-puppetManifest.rst
2021
parser-python.rst

0 commit comments

Comments
 (0)