
com.github.jalasoft.expression.czech.input.StringInputSystem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of czech-bool-expression Show documentation
Show all versions of czech-bool-expression Show documentation
This project provides an easy way of reading boolean expressions written in Czech language
package com.github.jalasoft.expression.czech.input;
import java.util.Optional;
public final class StringInputSystem implements InputSystem {
private final String input;
private int index;
public StringInputSystem(String input) {
this.input = input;
}
@Override
public Optional nextSymbol() {
if (index >= input.length()) {
return Optional.empty();
}
return Optional.of(input.charAt(index++));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy