Class CachingParser

java.lang.Object
io.github.douira.glsl_transformer.parser.EnhancedParser
io.github.douira.glsl_transformer.parser.CachingParser
All Implemented Interfaces:
ParserInterface
Direct Known Subclasses:
TranslationUnitFilterCachingParser, TwoTierCachingParser

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.