Class CachingParser

java.lang.Object
io.github.douira.glsl_transformer.parser.EnhancedParser
io.github.douira.glsl_transformer.parser.CachingParser
All Implemented Interfaces:
ParserInterface

public class CachingParser extends EnhancedParser
The caching parser extends the enhanced parser and returns previous parse trees if they are available. This can't be used if the parse tree is modified after parsing since then the contents of the cache would be modified too. The ASTBuilder does not modify the parse tree, and therefore it is safe to use this.
  • Constructor Details

    • CachingParser

      public CachingParser(boolean throwParseErrors, int cacheSize)
    • CachingParser

      public CachingParser(int cacheSize)
    • CachingParser

      public CachingParser(boolean throwParseErrors)
    • CachingParser

      public CachingParser()
  • Method Details