package cn.iocoder.yudao.module.qcreport.engine.rule; /** * 词法单元类型。 *
* label 保留前端 {@code engine/rule-engine.ts} 的小写写法, * 语法错误提示要在两端逐字一致,用户才不会对同一份规则看到两种说法。 */ public enum TokenType { COMMA("comma"), EOF("eof"), LPAREN("lparen"), NUMBER("number"), OPERATOR("operator"), RPAREN("rparen"), STRING("string"), WORD("word"); private final String label; TokenType(String label) { this.label = label; } public String label() { return label; } }