parseMichelson static method

String? parseMichelson(
  1. String code
)

Implementation

static String? parseMichelson(String code) {
  var parser = Nearley();
  parser.parser(Nearley.fromCompiled(MichelsonGrammar().grammar));
  var cleanCode = preProcessMichelsonScript(code);
  cleanCode.map((_code) => parser.feed(_code)).toList();
  return parser.results[0];
}