mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-28 01:25:19 +00:00
Implement a few nodes for the pattern matching.
This commit is contained in:
10
src/org/nwapw/abacus/lexing/pattern/AnyNode.java
Normal file
10
src/org/nwapw/abacus/lexing/pattern/AnyNode.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package org.nwapw.abacus.lexing.pattern;
|
||||
|
||||
public class AnyNode<T> extends PatternNode<T> {
|
||||
|
||||
@Override
|
||||
public boolean matches(char other) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user