newParseError returns a new instance of ParseError.
(found string, expected []string, pos int, expr string)
| 34 | |
| 35 | // newParseError returns a new instance of ParseError. |
| 36 | func newParseError(found string, expected []string, pos int, expr string) *ParseError { |
| 37 | return &ParseError{Found: found, Expected: expected, Pos: pos, Expr: expr} |
| 38 | } |
| 39 | |
| 40 | // findPosInLine returns the parser position and the line number |
| 41 | // where the syntax error occurred when the expression is split |
no outgoing calls