mirror of
https://github.com/DanilaFe/abacus
synced 2025-05-13 18:52:37 -07:00
15 lines
310 B
Java
15 lines
310 B
Java
package org.nwapw.abacus.lexing.pattern;
|
|
|
|
/**
|
|
* A pattern node that matches any character.
|
|
* @param <T> the type that's used to tell which pattern this node belongs to.
|
|
*/
|
|
public class AnyNode<T> extends PatternNode<T> {
|
|
|
|
@Override
|
|
public boolean matches(char other) {
|
|
return true;
|
|
}
|
|
|
|
}
|