// Path: src/main/java/org/smallibs/suitcase/cases/Case.java
// public interface Case<T, R> {
// 
//     Optional<R> unapply(T t);
// 
//     interface WithoutCapture<T, R> extends Case<T, Result.WithoutCapture<R>> {
//         static <T, R> WithoutCapture<T, R> adapt(Case<T, Result.WithoutCapture<R>> aCase) {
//             return aCase::unapply;
//         }
//     }
// 
//     interface WithCapture<T, R> extends Case<T, Result.WithCapture<R>> {
//         static <T, R> WithCapture<T, R> adapt(Case<T, Result.WithCapture<R>> aCase) {
//             return aCase::unapply;
//         }
//     }
// 
// }
// 
// Path: src/main/java/org/smallibs/suitcase/cases/Result.java
// public abstract class Result<R> {
// 
//     public static <R> WithoutCapture<R> success(R term) {
//         return new WithoutCapture<>(term);
//     }
// 
//     public static <C> WithCapture<C> successWithCapture(C result) {
//         return new WithCapture<>(result);
//     }
// 
//     private final R capturedObject;
// 
//     public Result(R capturedObject) {
//         this.capturedObject = capturedObject;
//     }
// 
//     public R resultValue() {
//         return capturedObject;
//     }
// 
//     public static class WithCapture<C> extends Result<C> {
//         public WithCapture(C capturedObject) {
//             super(capturedObject);
//         }
//     }
// 
//     public static class WithoutCapture<T> extends Result<T> {
//         public WithoutCapture(T capturedObject) {
//             super(capturedObject);
//         }
//     }
// 
// }


import org.smallibs.suitcase.cases.Case;
import org.smallibs.suitcase.cases.Result;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
        return new QuotedStringRecognizer();
    }

    public static Tokenizer<Integer> Int() {
        return new IntRecognizer();
    }

    public static Tokenizer<Float> Float() {
        return new FloatRecognizer();
    }

    public static Tokenizer<Integer> Hexa() {
        return new HexadecimalRecognizer();
    }

    public static Skip Skip(String value) {
        return new Skip(value);
    }

    public static <T> GenericRecognizer<T> Generic(String kind, Tokenizer<T> value) {
        return new GenericRecognizer<>(kind, value);
    }

    // -----------------------------------------------------------------------------------------------------------------
    // Public abstract methods
    // -----------------------------------------------------------------------------------------------------------------

    public abstract Optional<Token<T>> recognize(CharSequence sequence);

    @Override
// Path: src/main/java/org/smallibs/suitcase/cases/Case.java
// public interface Case<T, R> {
// 
//     Optional<R> unapply(T t);
// 
//     interface WithoutCapture<T, R> extends Case<T, Result.WithoutCapture<R>> {
//         static <T, R> WithoutCapture<T, R> adapt(Case<T, Result.WithoutCapture<R>> aCase) {
//             return aCase::unapply;
//         }
//     }
// 
//     interface WithCapture<T, R> extends Case<T, Result.WithCapture<R>> {
//         static <T, R> WithCapture<T, R> adapt(Case<T, Result.WithCapture<R>> aCase) {
//             return aCase::unapply;
//         }
//     }
// 
// }
// 
// Path: src/main/java/org/smallibs/suitcase/cases/Result.java
// public abstract class Result<R> {
// 
//     public static <R> WithoutCapture<R> success(R term) {
//         return new WithoutCapture<>(term);
//     }
// 
//     public static <C> WithCapture<C> successWithCapture(C result) {
//         return new WithCapture<>(result);
//     }
// 
//     private final R capturedObject;
// 
//     public Result(R capturedObject) {
//         this.capturedObject = capturedObject;
//     }
// 
//     public R resultValue() {
//         return capturedObject;
//     }
// 
//     public static class WithCapture<C> extends Result<C> {
//         public WithCapture(C capturedObject) {
//             super(capturedObject);
//         }
//     }
// 
//     public static class WithoutCapture<T> extends Result<T> {
//         public WithoutCapture(T capturedObject) {
//             super(capturedObject);
//         }
//     }
// 
// }


// Path: src/main/java/org/smallibs/suitcase/cases/genlex/Tokenizer.java
import org.smallibs.suitcase.cases.Case;
import org.smallibs.suitcase.cases.Result;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

        return new QuotedStringRecognizer();
    }

    public static Tokenizer<Integer> Int() {
        return new IntRecognizer();
    }

    public static Tokenizer<Float> Float() {
        return new FloatRecognizer();
    }

    public static Tokenizer<Integer> Hexa() {
        return new HexadecimalRecognizer();
    }

    public static Skip Skip(String value) {
        return new Skip(value);
    }

    public static <T> GenericRecognizer<T> Generic(String kind, Tokenizer<T> value) {
        return new GenericRecognizer<>(kind, value);
    }

    // -----------------------------------------------------------------------------------------------------------------
    // Public abstract methods
    // -----------------------------------------------------------------------------------------------------------------

    public abstract Optional<Token<T>> recognize(CharSequence sequence);

    @Override
    public Optional<Result.WithoutCapture<Token<T>>> unapply(CharSequence charSequence) {