miker2 / flexi_config_reader

A flexible configuration format that supports templated tables and referencing of existing keys.
MIT License
3 stars 1 forks source link

Add ability to use reference name/key in reference vars #41

Closed miker2 closed 2 years ago

miker2 commented 2 years ago

Assumming a proto is referenced as follows:

reference name.of.proto as ref_name

Make it possible to point a reference var at ref_name without needing to duplicate it.

For example:

reference protos.my_proto as foo_bar
  $VAR1 = $REF_NAME
  $VAR2 = 27
  ...
end foo_bar

Would set the value of $VAR1 to "foo_bar".

Need to determine the exact syntax, but a reserved keyword (e.g. $REF_NAME) would probably work quite well.