scope parse3_cachedPattern. static Map #cache = synchronizedMRUCache(1000); static synchronized L parse3_cachedPattern(S s) { LS tok = cache.get(s); if (tok == null) cache.put(s, tok = parse3(s)); ret tok; } end scope