private String parseTag(char ch) throws FHIRException { grab(); grab(); StringBuilder b = new StringBuilder(); while (cursor < source.length() && !(next1() == '%' && next2() == '}')) { b.append(grab()); } if (!(next1() == '%' && next2() == '}')) throw new FHIRException("Script "+name+": Unterminated Liquid statement {% "+b.toString()); grab(); grab(); return b.toString().trim(); }
private String parseList(List<LiquidNode> list, String[] terminators) throws FHIRException { String close = null; while (cursor < source.length()) { if (next1() == '{' && (next2() == '%' || next2() == '{' )) { if (next2() == '%') { String cnt = parseTag('%'); if (Utilities.existsInList(cnt, terminators)) {
private LiquidStatement parseStatement() throws FHIRException { grab(); grab(); StringBuilder b = new StringBuilder(); while (cursor < source.length() && !(next1() == '}' && next2() == '}')) { b.append(grab()); } if (!(next1() == '}' && next2() == '}')) throw new FHIRException("Script "+name+": Unterminated Liquid statement {{ "+b.toString()); grab(); grab(); LiquidStatement res = new LiquidStatement(); res.statement = b.toString().trim(); return res; }
private String parseList(List<LiquidNode> list, String[] terminators) throws FHIRException { String close = null; while (cursor < source.length()) { if (next1() == '{' && (next2() == '%' || next2() == '{' )) { if (next2() == '%') { String cnt = parseTag('%'); if (Utilities.existsInList(cnt, terminators)) {
private LiquidStatement parseStatement() throws FHIRException { grab(); grab(); StringBuilder b = new StringBuilder(); while (cursor < source.length() && !(next1() == '}' && next2() == '}')) { b.append(grab()); } if (!(next1() == '}' && next2() == '}')) throw new FHIRException("Script "+name+": Unterminated Liquid statement {{ "+b.toString()); grab(); grab(); LiquidStatement res = new LiquidStatement(); res.statement = b.toString().trim(); return res; }
private String parseTag(char ch) throws FHIRException { grab(); grab(); StringBuilder b = new StringBuilder(); while (cursor < source.length() && !(next1() == '%' && next2() == '}')) { b.append(grab()); } if (!(next1() == '%' && next2() == '}')) throw new FHIRException("Script "+name+": Unterminated Liquid statement {% "+b.toString()); grab(); grab(); return b.toString().trim(); }