diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 60d828d..b3ca2e3 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -9,7 +9,7 @@ ] }, "fable": { - "version": "4.0.0-theta-006", + "version": "4.0.0-theta-008", "commands": [ "fable" ] diff --git a/src/stdlib/Ast.fs b/src/stdlib/Ast.fs index 4d2c91e..685a5a9 100644 --- a/src/stdlib/Ast.fs +++ b/src/stdlib/Ast.fs @@ -7,27 +7,34 @@ open Fable.Core type _identifier = string +[] type AST = abstract foo: int +[] type ``mod`` = inherit AST +[] type expr = inherit AST +[] type Module = inherit ``mod`` abstract body: stmt array +[] type Expression = inherit ``mod`` abstract body: expr +[] type stmt = inherit AST +[] type FunctionDef = inherit stmt @@ -37,6 +44,7 @@ type FunctionDef = abstract decorator_list: expr array abstract returns: expr option +[] type ClassDef = inherit stmt abstract name: _identifier @@ -45,35 +53,42 @@ type ClassDef = abstract body: stmt array abstract decorator_list: expr array +[] type Return = inherit stmt abstract value: expr option +[] type Delete = inherit stmt abstract targets: expr array +[] type Assign = inherit stmt abstract targets: expr array abstract value: expr +[] type Import = inherit stmt abstract names: alias array +[] type ImportFrom = inherit stmt abstract ``module``: _identifier option abstract names: alias array abstract level: int +[] type If = inherit stmt abstract test: expr abstract body: stmt array abstract orelse: stmt array +[] type arguments = inherit AST @@ -85,16 +100,19 @@ type arguments = abstract kwarg: arg option abstract defaults: expr array +[] type arg = inherit AST abstract arg: _identifier abstract annotation: expr option +[] type keyword = inherit AST abstract arg: _identifier option abstract value: expr +[] type alias = inherit AST abstract name: _identifier diff --git a/src/stdlib/TkInter.fs b/src/stdlib/TkInter.fs index 91b0e42..156f830 100644 --- a/src/stdlib/TkInter.fs +++ b/src/stdlib/TkInter.fs @@ -2,13 +2,17 @@ module Fable.Python.TkInter open Fable.Core +[] type Event = abstract member x : int abstract member y : int +[] type Misc = abstract member bind : sequence: string * func: (Event -> unit) -> string option +[] + type Wm = abstract member title : unit -> string abstract member title : string: string -> unit