mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-29 01:55:19 +00:00
Add a lot of comments. More to come.
This commit is contained in:
@@ -1,10 +1,25 @@
|
||||
package org.nwapw.abacus.lexing.pattern;
|
||||
|
||||
/**
|
||||
* A node that matches a range of characters.
|
||||
* @param <T> the type that's used to tell which pattern this node belongs to.
|
||||
*/
|
||||
public class RangeNode<T> extends PatternNode<T> {
|
||||
|
||||
/**
|
||||
* The bottom bound of the range, inclusive.
|
||||
*/
|
||||
private char from;
|
||||
/**
|
||||
* The top bound of the range, inclusive.
|
||||
*/
|
||||
private char to;
|
||||
|
||||
/**
|
||||
* Creates a new range node from the given range.
|
||||
* @param from the bottom bound of the range.
|
||||
* @param to the top bound of hte range.
|
||||
*/
|
||||
public RangeNode(char from, char to){
|
||||
this.from = from;
|
||||
this.to = to;
|
||||
|
||||
Reference in New Issue
Block a user