All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jalasoft.expression.czech.lexan.LexicalSymbol Maven / Gradle / Ivy

Go to download

This project provides an easy way of reading boolean expressions written in Czech language

There is a newer version: 1.0.2
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy