Added support for referencing environments; variable resolution will be available after adjustments to the ANTLR grammar.