com.github.jalasoft.expression.czech.lexan.LexicalSymbol 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.lexan;
public final class LexicalSymbol {
public enum Type {
IDENT, NUMBER, JE, NENI, ROVNO, STEJNY, STEJNE, VETSI, VICE, VIC, MENSI, MENE, MIN, NEZ, JAK, JAKO, NEBO, A, EPSILON
}
private final Type type;
private final Object value;
public LexicalSymbol(Type type, Object value) {
this.type = type;
this.value = value;
}
public boolean is(Type type) {
return this.type == type;
}
public Object value() {
return value;
}
public Type type() {
return type;
}
}