File: parser-gdscript.rst

package info (click to toggle)
universal-ctags 6.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,612 kB
  • sloc: ansic: 158,498; sh: 8,621; lisp: 7,742; vhdl: 6,518; cpp: 2,583; perl: 2,578; python: 2,324; javascript: 2,054; cs: 1,193; lex: 1,015; sql: 897; makefile: 787; ruby: 764; php: 755; cobol: 741; f90: 566; ada: 559; asm: 509; yacc: 465; fortran: 412; xml: 405; objc: 289; tcl: 280; java: 173; erlang: 65; pascal: 58; ml: 49; awk: 44; haskell: 42
file content (17 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.