Skip to content

Commit

Permalink
Implement simplest linear check (which will work until joni opts some…
Browse files Browse the repository at this point in the history
… stack operations to be linear via caching)
  • Loading branch information
enebo committed May 10, 2024
1 parent d4696c4 commit c13681d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/joni/Regex.java
Original file line number Diff line number Diff line change
Expand Up @@ -507,4 +507,8 @@ public void setUserObject(Object object) {
public Object getUserObject() {
return userObject;
}

public boolean isLinear() {
return !requireStack;
}
}

0 comments on commit c13681d

Please sign in to comment.