mirror of https://github.com/arendst/Tasmota.git
12 lines
347 B
EBNF
Executable File
12 lines
347 B
EBNF
Executable File
block = type name ['(' {attributes} ')'] '{' {data_fields} '}';
|
|
type = 'map' | 'class' | 'module' | 'vartab';
|
|
|
|
attributes = name ':' name [','];
|
|
data_fields = data_name ',' data_value [':' depend_macro] '\n';
|
|
|
|
(* regular expression *)
|
|
name = [_a-zA-Z]\w*;
|
|
data_name = [\._a-zA-Z]\w*;
|
|
data_value = [\w\()]+;
|
|
depend_macro = [_a-zA-Z]\w*;
|