public string Transform(string document) { var parser = new BBCodeParser(new CommonTokenStream(new BBCodeLexer(new AntlrInputStream(document)))); return(ParseDocument(parser.document())); }