AutoIt+
  • Overview
  • Getting started
  • The language
    • Basic
    • Grammar
      • Expressions
      • Statements
      • Declarations
    • Operators
    • Variables
    • Types & values
      • Null
      • Booleans
      • Numbers
      • Strings
      • Functions
      • Classes
      • Pointers
    • Control flow
      • If statement
      • For loop
      • While loop
      • Break & continue
      • Error handling
    • Collections
      • Array
        • APIs
        • Implementation
      • Map
        • APIs
        • Implementation
    • Modules
    • Exceptions
  • Built-in modules
    • C
      • APIs
      • Constants
    • Math
      • APIs
      • Constants
    • Task
      • Types
      • APIs
    • Global
  • The aup
    • Compiler
    • Runtime
    • Options
Powered by GitBook
On this page
  • Class declaration
  • Function declaration
  • Parameter list
  • Use declaration

Was this helpful?

  1. The language
  2. Grammar

Declarations

PreviousStatementsNextOperators

Last updated 4 years ago

Was this helpful?

Class declaration

classDecl := IDENTIFIER '{' method* '}'

Function declaration

funcDecl := 'func' IDENTIFIER params '{' decl* '}'

Parameter list

params := '(' ( IDENTIFIER ( ',' IDENTIFIER )* )? ')'

Each parameter is separated by comma.

Use declaration

useDecl := 'use' IDENTIFIER ( '='
           IDENTIFIER(.IDENTIFIER)* | STRING )?

See

modules