code: function transformClassicParametricAxiom(axiom) {
  
    // Replace whitespaces, then split between square brackets.
    let splitAxiom = axiom.replace(/\s+/g, '').split(/[\(\)]/);
    // console.log('parts:', splitAxiom)
    let newAxiom = [];
    // Construct new axiom by getting the params and symbol.
    for (let i = 0; i < splitAxiom.length - 1; i += 2) {
      let params = splitAxiom[i + 1].split(',').map(Number);
      newAxiom.push({ symbol: splitAxiom[i], params: params });
    }
    // console.log('parsed axiom:', newAxiom)
  }
docs: transforms things like 'A(1,2,5)B(2.5)' to [ {symbol: 'A', params: [1,2,5]}, {symbol: 'B', params:[25]} ] strips spaces