(opos, oend, npos, nend int)
| 36 | } |
| 37 | |
| 38 | func (m Map) add(opos, oend, npos, nend int) { |
| 39 | m[Location{Pos: opos, End: oend}] = Location{Pos: npos, End: nend} |
| 40 | } |
| 41 | |
| 42 | // Compute constructs a location mapping from input to output. An error is |
| 43 | // reported if any of the tokens of output cannot be mapped. |