/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package foam.lib.parse;

public class Range implements Parser {
  private char from;
  private char to;

  public Range(char from, char to) {
    this.from = from;
    this.to   = to;
  }

  public PStream parse(PStream ps, ParserContext x) {
    if ( ps.valid() && ( ps.head() >= from ) && ( ps.head() <= to ) ) {
      return ps.tail().setValue(ps.head());
    }

    return null;
  }
}

@@ -503,11 +503,90 @@
 ull;%0A  %7D
+%0A%0A  public String toString() %7B%0A    return %22Range(%22 + from + %22-%22 + to + %22)%22;%0A  %7D
 %0A%7D%0A

Add toString() on Range parser.