LLK

Locator Notes

  • Error location and locator
  • LLK v0.4 has reworked the locator implementation. ISourceLocator is now responsible for maintaining all the location information (file, offset, linear line, mapped line and column). ILLKLexerInput only maintain the linear offset. ISourceLocator.getLocation(int offset) would map the offset into actual ISourceLocation, with file name and mapped line number. LLK error reporting always obtain error location through the locator. SourceLocator class is the default error location locator. User may provide a custom mapping by calling ILLKLexer.llkSetLocator(ISourceLocator).