docs: def parse(self, text, element, context='eqn'):
          """
             context : <string> 'eqn', 'defn'
                  If context is set to equation, lone identifiers will be parsed as calls to elements
                  If context is set to definition, lone identifiers will be cleaned and returned.
          """
          
          # Remove the inline comments from `text` before parsing the grammar
          # http://docs.oasis-open.org/xmile/xmile/v1.0/csprd01/xmile-v1.0-csprd01.html#_Toc398039973
          text = re.sub(r"\{[^}]*\}", "", text)
          
          self.ast = self.grammar.parse(text)
          self.context = context
          self.element = element
          self.new_structure = []
          
          py_expr = self.visit(self.ast)
          
          return ({
              'py_expr': py_expr
          }, self.new_structure)