This changelog summarizes major changes between TRegex versions relevant to language implementors integrating TRegex into their language. This document will focus on API changes relevant to integrators of TRegex.
- Removed properties
regex
,input
,start
, andend
from result objects. - Introduced methods
getStart(groupNumber)
andgetEnd(groupNumber)
as a replacement forstart
andend
in result objects. - Regex syntax exceptions are now to be treated as plain
TruffleException
s - languages using TRegex should not introduce any source code dependency on TRegex. - Moved
groupCount
property from regex result to compiled regex objects.
- Added the possibility to log the actions of the compiler.
- Introduced the
regex
loggersSwitchToEager
,TotalCompilationTime
,Phases
,BailoutMessages
,AutomatonSizes
,CompilerFallback
,InternalErrors
andTRegexCompilations
. These can be enabled in your launchers by setting, e.g.,--log.regex.Phases.level=ALL
.
- Introduced the