demetrixbio / GslCore

Core library and basic plug-ins for the Amyris Genotype Specification Language (GSL) compiler.
Apache License 2.0
6 stars 1 forks source link

Add global tagging #9

Closed selketjah closed 3 years ago

selketjah commented 3 years ago

Added #gtag as a pragma.

gtag stands for global tag and has the ability to declare tags globally in a GSL document. It is a persisting pragma.

How does it work?

Input:

#gtag flavor:vanilla
#tag condiment:ketchup

Output:

<tag nspace="condiment" tag="ketchup" />
<tag nspace="flavor" tag="vanilla" />