2019-03-03 11:28:40 +01:00
|
|
|
|
{
|
2022-03-20 14:39:35 +01:00
|
|
|
|
"version": "1",
|
2019-03-03 11:28:40 +01:00
|
|
|
|
"lexer_rules": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "ignore",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"pattern": " |\\t|\\n"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-03-20 14:39:35 +01:00
|
|
|
|
"type": "string",
|
2019-03-03 11:28:40 +01:00
|
|
|
|
"parameters": {
|
|
|
|
|
|
"pattern": "false|0",
|
2022-03-20 14:39:35 +01:00
|
|
|
|
"id": "const_false"
|
2019-03-03 11:28:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-03-20 14:39:35 +01:00
|
|
|
|
"type": "string",
|
2019-03-03 11:28:40 +01:00
|
|
|
|
"parameters": {
|
|
|
|
|
|
"pattern": "true|1",
|
2022-03-20 14:39:35 +01:00
|
|
|
|
"id": "const_true"
|
2019-03-03 11:28:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "void",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"pattern": "¬|-|\\!|not",
|
|
|
|
|
|
"id": "not"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "void",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"pattern": "∧|&|and",
|
|
|
|
|
|
"id": "and"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "void",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"pattern": "∨|\\||or",
|
|
|
|
|
|
"id": "or"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "void",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"pattern": "\\(|\\[",
|
|
|
|
|
|
"id": "open"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "void",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"pattern": "\\)|\\]",
|
|
|
|
|
|
"id": "close"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"parser_rules": [
|
|
|
|
|
|
{
|
2022-03-20 14:39:35 +01:00
|
|
|
|
"label": "constant_false",
|
2019-03-03 11:28:40 +01:00
|
|
|
|
"premise": "formula",
|
|
|
|
|
|
"conclusion": [
|
2022-03-20 14:39:35 +01:00
|
|
|
|
{"type": "terminal", "parameters": {"id": "const_false"}}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"label": "constant_true",
|
|
|
|
|
|
"premise": "formula",
|
|
|
|
|
|
"conclusion": [
|
|
|
|
|
|
{"type": "terminal", "parameters": {"id": "const_true"}}
|
2019-03-03 11:28:40 +01:00
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"label": "negation",
|
|
|
|
|
|
"premise": "formula",
|
|
|
|
|
|
"conclusion": [
|
|
|
|
|
|
{"type": "terminal", "parameters": {"id": "not"}},
|
|
|
|
|
|
{"type": "variable", "parameters": {"id": "formula"}}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"label": "conjunction",
|
|
|
|
|
|
"premise": "formula",
|
|
|
|
|
|
"conclusion": [
|
|
|
|
|
|
{"type": "variable", "parameters": {"id": "formula"}},
|
|
|
|
|
|
{"type": "terminal", "parameters": {"id": "and"}},
|
|
|
|
|
|
{"type": "variable", "parameters": {"id": "formula"}}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"label": "disjunction",
|
|
|
|
|
|
"premise": "formula",
|
|
|
|
|
|
"conclusion": [
|
|
|
|
|
|
{"type": "variable", "parameters": {"id": "formula"}},
|
|
|
|
|
|
{"type": "terminal", "parameters": {"id": "or"}},
|
|
|
|
|
|
{"type": "variable", "parameters": {"id": "formula"}}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"label": "priorised",
|
|
|
|
|
|
"premise": "formula",
|
|
|
|
|
|
"conclusion": [
|
|
|
|
|
|
{"type": "terminal", "parameters": {"id": "open"}},
|
|
|
|
|
|
{"type": "variable", "parameters": {"id": "formula"}},
|
|
|
|
|
|
{"type": "terminal", "parameters": {"id": "close"}}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
2021-09-19 01:14:32 +02:00
|
|
|
|
],
|
|
|
|
|
|
"parser_start": "formula"
|
2019-03-03 11:28:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
|