237 lines
3.6 KiB
JavaScript
237 lines
3.6 KiB
JavaScript
jsonp_handle(
|
|
{
|
|
"key": "tasks",
|
|
"value": [
|
|
{
|
|
"id": "einfuehrung",
|
|
"kind": "acceptor",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [],
|
|
"accept": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "start_symbol",
|
|
"kind": "acceptor",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [0],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [1],
|
|
"accept": true
|
|
},
|
|
{
|
|
"input": [0,1],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [1,0,1,1,0,0,0,1,0],
|
|
"accept": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "dreifaltigkeit",
|
|
"kind": "acceptor",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [1],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [0,0,1,1],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [1,0,1,0,0,1,0],
|
|
"accept": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "abwechslung_erfreuet",
|
|
"kind": "acceptor",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [],
|
|
"accept": true
|
|
},
|
|
{
|
|
"input": [0],
|
|
"accept": true
|
|
},
|
|
{
|
|
"input": [0,0],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [1,0,1],
|
|
"accept": true
|
|
},
|
|
{
|
|
"input": [0,1,0,1,0,1],
|
|
"accept": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "ans_ende",
|
|
"kind": "transducer",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [0,0,1,1,1,0,1,0,1,1,1,0,1],
|
|
"output": [0,1,1,1,0,1,0,1,1,1,0,1,0]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "tauschen",
|
|
"kind": "transducer",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [0,1,1,0],
|
|
"output": [2,3,3,2]
|
|
},
|
|
{
|
|
"input": [0,1,0,1,0,1,1,0,0,0,0,1,0,1,1,0],
|
|
"output": [2,3,2,3,2,3,3,2,2,2,2,3,2,3,3,2]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "waehlerisch",
|
|
"kind": "transducer",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [0,0,0,1,0],
|
|
"output": [1]
|
|
},
|
|
{
|
|
"input": [1,0,1,0,1],
|
|
"output": [1,1,1]
|
|
},
|
|
{
|
|
"input": [1,1,1,1,0],
|
|
"output": [1,1,1,1]
|
|
},
|
|
{
|
|
"input": [0,0,0,0,1,0,1,1,0],
|
|
"output": [1,1,1]
|
|
},
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "dekorator",
|
|
"kind": "transducer",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [1,1,0],
|
|
"output": [2,1,1,0,3]
|
|
},
|
|
{
|
|
"input": [0,0,1,0,0],
|
|
"output": [2,0,0,1,0,0,3]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "alpha_und_omega",
|
|
"kind": "acceptor",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [],
|
|
"accept": true
|
|
},
|
|
{
|
|
"input": [1],
|
|
"accept": true
|
|
},
|
|
{
|
|
"input": [0,1],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [0,1,1,1,0],
|
|
"accept": true
|
|
},
|
|
{
|
|
"input": [1,1,0,0],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [1,0,1,1,1],
|
|
"accept": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "an_den_anfang",
|
|
"kind": "transducer",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [0,0,1,1,1,0,1,0,1,1,1,0,1],
|
|
"output": [1,0,0,1,1,1,0,1,0,1,1,1,0]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "a_n_b_n",
|
|
"kind": "acceptor",
|
|
"parameter": {
|
|
"tests": [
|
|
{
|
|
"input": [],
|
|
"accept": true
|
|
},
|
|
{
|
|
"input": [0],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [0,0,1,1],
|
|
"accept": true
|
|
},
|
|
{
|
|
"input": [0,0,0,1,1],
|
|
"accept": false
|
|
},
|
|
{
|
|
"input": [0,0,0,0,0,0,0,1,1,1,1,1,1,1],
|
|
"accept": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
);
|
|
|