summaryrefslogtreecommitdiffstats
path: root/uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx
blob: 717fb7172feaede5eaddae5e7a1b8e96cb7af0a5 (plain)
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
/*
  This file is for defining the DSL grammar.
  This file imports all grammar rules from all the other files.
  The compiler works with this file.
  Each imported file has comments related to its content.
*/

import dialog_commands
import starter_commands
import uno_commands
import UI_Object_commands
import Special_commands
import General_commands

UILogger:
    commands*=Command
;

Command:
  UNOCommand | StarterCommand | UIObjectCommand | DialogCommand  |
  SpecialCommand | GeneralCommand | Comment
;
/*
  The Comment rule is for having an ability to write a comment,
  if you want to write a test case in the DSL
*/
Comment:
  /\/\/.*$/
;