Tasmota/lib/libesp32/Berry/tools/grammar/const_obj.ebnf

12 lines
347 B
EBNF
Raw Normal View History

2021-04-12 18:53:35 +01:00
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*;