function HMML_parse(contents) { var l = new HMMLexer(); var state = { line: 0, annos: [], meta: { annotators: [], guests: [], co_hosts: [] }, an: { line: 0, text: "", references: [], markers: [], }, ref: {}, first: true }; l.setInput(contents, state); try { var r; do { r = l.next(); } while (!r); return { metadata: state.meta, annotations: state.annos }; } catch (e) { return { error: e }; } } function HMMLexer() {} /* generated by jison-lex 0.3.4 */ HMMLexer.prototype = {