Update inference rules to match new Bergamot's single-literal output
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
85b81ffc98
commit
645f2c5c9c
|
@ -443,8 +443,8 @@ and already be up-to-speed on a big chunk of the content.
|
|||
#### Playground
|
||||
{{< bergamot_widget id="widget-one" query="" prompt="PromptConverter @ prompt(type(empty, ?term, ?t)) <- input(?term);" >}}
|
||||
section "" {
|
||||
TNumber @ type(?Gamma, intlit(?n), number) <-;
|
||||
TString @ type(?Gamma, strlit(?s), string) <-;
|
||||
TNumber @ type(?Gamma, lit(?n), number) <- num(?n);
|
||||
TString @ type(?Gamma, lit(?s), string) <- str(?s);
|
||||
TVar @ type(?Gamma, var(?x), ?tau) <- inenv(?x, ?tau, ?Gamma);
|
||||
TPlusI @ type(?Gamma, plus(?e_1, ?e_2), number) <-
|
||||
type(?Gamma, ?e_1, number), type(?Gamma, ?e_2, number);
|
||||
|
|
|
@ -263,8 +263,8 @@ It has two modes:
|
|||
|
||||
{{< bergamot_widget id="widget-one" query="" prompt="PromptConverter @ prompt(type(empty, ?term, ?t)) <- input(?term);" >}}
|
||||
section "" {
|
||||
TNumber @ type(?Gamma, intlit(?n), number) <- int(?n);
|
||||
TString @ type(?Gamma, strlit(?s), string) <- str(?s);
|
||||
TNumber @ type(?Gamma, lit(?n), number) <- num(?n);
|
||||
TString @ type(?Gamma, lit(?s), string) <- str(?s);
|
||||
TVar @ type(?Gamma, var(?x), ?tau) <- inenv(?x, ?tau, ?Gamma);
|
||||
TPlusI @ type(?Gamma, plus(?e_1, ?e_2), number) <-
|
||||
type(?Gamma, ?e_1, number), type(?Gamma, ?e_2, number);
|
||||
|
|
Loading…
Reference in New Issue
Block a user