Skip to end of metadata
Go to start of metadata

lsFusion is a programming language that describes lsFusion modules.

Each module consists of a sequence of instructions divided into module header and body. The header may include four special instructions: MODULE, REQUIRE, PRIORITY and NAMESPACE, which define module parameters. The header is followed by the module body which consists of the remaining instructions and describes the logic of this module.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 // Module caption
MODULE LanguageExample;

REQUIRE System;

NAMESPACE Example;
  
// Module body
  
// Classes declaration 
CLASS Employee;
CLASS Company;
 
// Properties declaration 
name(employee) = DATA BPSTRING[100](Employee);
age(employee) = DATA INTEGER(Employee);
company(employee) = DATA Company(Employee);
  
name(company) = DATA BPSTRING[100](Company);
 
// Form declaration 
FORM employeeForm
    OBJECTS e = Employee
    PROPERTIES(e) name, age, company
; 
 
// Adding a form to the navigator 
NAVIGATOR {
    NEW employeeForm;
}

  • No labels