mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 18:30:42 +00:00
Separate example assumptions by commas
This commit is contained in:
parent
d1ea244254
commit
60235bd757
@ -43,7 +43,7 @@ public class AssumptionExampleContent extends VerticalLayout {
|
|||||||
selectedTermBar.setId(SELECTED_TERM_BAR_ID);
|
selectedTermBar.setId(SELECTED_TERM_BAR_ID);
|
||||||
this.add(selectedTermBar);
|
this.add(selectedTermBar);
|
||||||
|
|
||||||
String[] exampleAssumptions = getTranslation("root." + term.replaceAll("(\\s+|=)", "")).split(",");
|
String[] exampleAssumptions = getTranslation("root." + term.replaceAll("(\\s+|=)", "")).split(";");
|
||||||
for (String assumptions : exampleAssumptions) {
|
for (String assumptions : exampleAssumptions) {
|
||||||
Button button = new Button(assumptions);
|
Button button = new Button(assumptions);
|
||||||
button.addClickListener(click -> forwardCallback.accept(assumptions.
|
button.addClickListener(click -> forwardCallback.accept(assumptions.
|
||||||
|
@ -16,15 +16,15 @@ root.exampleTerms=\
|
|||||||
let f = λx. let g = λy. y in g x in f 3,\
|
let f = λx. let g = λy. y in g x in f 3,\
|
||||||
let f = λx. let g = λy.5 5 in g x in f 3
|
let f = λx. let g = λy.5 5 in g x in f 3
|
||||||
|
|
||||||
root.λx.x=∅, x: int, y: bool
|
root.λx.x=∅; x: int; y: bool
|
||||||
root.λx.λy.yx=∅, x: int, y: bool
|
root.λx.λy.yx=∅; x: int; y: bool
|
||||||
root.λx.λy.y(xx)=∅, x: int, y: bool
|
root.λx.λy.y(xx)=∅; x: int; y: bool
|
||||||
root.letfλx.gyyinf3=∅, g: a->b->a, g: int->int->bool, g: int->int->bool; y: bool, g: int->int->bool; y: τ₁
|
root.letfλx.gyyinf3=∅; g: a->b->a; g: int->int->bool; g: int->int->bool, y: bool; g: int->int->bool, y: τ₁
|
||||||
root.letkλx.λy.xinka(kbc)=∅, a: τ₁, a: ∀τ₁.τ₁->int; b: a, a: int; b: bool; c: char
|
root.letkλx.λy.xinka(kbc)=∅; a: τ₁, a: ∀τ₁.τ₁->int; b: a, a: int; b: bool; c: char
|
||||||
root.(λx.xx)(λx.xx)=∅, x: bool
|
root.(λx.xx)(λx.xx)=∅; x: bool
|
||||||
root.(λx.λy.y(xy))(λz.λa.zga)=∅, g: bool, a: int; g: bool->int, g: ∀τ₂.τ₁->τ₂
|
root.(λx.λy.y(xy))(λz.λa.zga)=∅; g: bool; a: int, g: bool->int; g: ∀τ₂.τ₁->τ₂
|
||||||
root.letfλx.letgλy.yingxinf3=∅, g: bool->int->bool
|
root.letfλx.letgλy.yingxinf3=∅; g: bool->int->bool
|
||||||
root.letfλx.letgλy.55ingxinf3=∅, f: bool->int->bool
|
root.letfλx.letgλy.55ingxinf3=∅; f: bool->int->bool
|
||||||
|
|
||||||
root.termGrammar=\u2329Term\u232A ::= (\u2329Term\u232A) | \u2329App\u232A | \u2329Abs\u232A | \
|
root.termGrammar=\u2329Term\u232A ::= (\u2329Term\u232A) | \u2329App\u232A | \u2329Abs\u232A | \
|
||||||
\u2329Let\u232A | \u2329Var\u232A | \u2329Const\u232A <br> \
|
\u2329Let\u232A | \u2329Var\u232A | \u2329Const\u232A <br> \
|
||||||
|
Loading…
Reference in New Issue
Block a user