web: add /kripke
This commit is contained in:
@@ -146,3 +146,11 @@ EXP.setPattern(
|
||||
export function parse(expr: string): Formula {
|
||||
return expectSingleResult(expectEOF(EXP.parse(lexer.parse(expr))));
|
||||
}
|
||||
|
||||
export function tryParse(expr: string): Formula | undefined {
|
||||
try {
|
||||
return parse(expr);
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,11 +79,11 @@ export const unicodeSymbols: Symbols = {
|
||||
};
|
||||
|
||||
export const latexSymbols: Symbols = {
|
||||
top: "\\top",
|
||||
bot: "\\bot",
|
||||
box: "\\Box",
|
||||
diamond: "\\Diamond",
|
||||
not: "\\neg",
|
||||
top: "\\top ",
|
||||
bot: "\\bot ",
|
||||
box: "\\Box ",
|
||||
diamond: "\\Diamond ",
|
||||
not: "\\neg ",
|
||||
and: "\\land",
|
||||
or: "\\lor",
|
||||
to: "\\to",
|
||||
|
||||
Reference in New Issue
Block a user