mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-03 05:54:33 +00:00
Update ast.d.er
This commit is contained in:
parent
26620dd75d
commit
0bfc1c8988
1 changed files with 108 additions and 3 deletions
|
@ -20,34 +20,57 @@
|
||||||
.ExprContext <: AST
|
.ExprContext <: AST
|
||||||
.Module = 'module': ClassType
|
.Module = 'module': ClassType
|
||||||
.Module <: AST
|
.Module <: AST
|
||||||
|
.Module.
|
||||||
|
body: [Stmt; _]
|
||||||
|
type_ignores: [TypeIgnore; _]
|
||||||
|
|
||||||
.Constant: ClassType
|
.Constant: ClassType
|
||||||
.Constant <: Expr
|
.Constant <: Expr
|
||||||
|
.Constant.
|
||||||
|
value: Obj
|
||||||
|
kind: Str or NoneType
|
||||||
|
|
||||||
.FormattedValue: ClassType
|
.FormattedValue: ClassType
|
||||||
.FormattedValue <: Expr
|
.FormattedValue <: Expr
|
||||||
|
.FormattedValue.
|
||||||
|
value: Expr
|
||||||
|
conversion: Int
|
||||||
|
format_spec: Expr or NoneType
|
||||||
|
|
||||||
.JoinedStr: ClassType
|
.JoinedStr: ClassType
|
||||||
.JoinedStr <: Expr
|
.JoinedStr <: Expr
|
||||||
|
.JoinedStr.
|
||||||
|
values: [Expr; _]
|
||||||
|
|
||||||
.List: ClassType
|
.List: ClassType
|
||||||
.List <: Expr
|
.List <: Expr
|
||||||
.List.
|
.List.
|
||||||
elts: [Expr; _]
|
elts: [Expr; _]
|
||||||
expr_context: ExprContext
|
ctx: ExprContext
|
||||||
.Bytes: ClassType
|
|
||||||
.Bytes <: Constant
|
|
||||||
.Tuple: ClassType
|
.Tuple: ClassType
|
||||||
.Tuple <: Expr
|
.Tuple <: Expr
|
||||||
|
.Tuple.
|
||||||
|
elts: [Expr; _]
|
||||||
|
ctx: ExprContext
|
||||||
|
|
||||||
.Set: ClassType
|
.Set: ClassType
|
||||||
.Set <: Expr
|
.Set <: Expr
|
||||||
|
.Set.
|
||||||
|
elts: [Expr; _]
|
||||||
|
|
||||||
.Dict: ClassType
|
.Dict: ClassType
|
||||||
.Dict <: Expr
|
.Dict <: Expr
|
||||||
.Dict.
|
.Dict.
|
||||||
keys: [Expr; _]
|
keys: [Expr; _]
|
||||||
values: [Expr; _]
|
values: [Expr; _]
|
||||||
|
|
||||||
.Name: ClassType
|
.Name: ClassType
|
||||||
.Name <: Expr
|
.Name <: Expr
|
||||||
.Name.
|
.Name.
|
||||||
id: Str
|
id: Str
|
||||||
ctx: ExprContext
|
ctx: ExprContext
|
||||||
|
|
||||||
.Load: ClassType
|
.Load: ClassType
|
||||||
.Load <: ExprContext
|
.Load <: ExprContext
|
||||||
.Store: ClassType
|
.Store: ClassType
|
||||||
|
@ -172,6 +195,10 @@
|
||||||
|
|
||||||
.Attribute: ClassType
|
.Attribute: ClassType
|
||||||
.Attribute <: Expr
|
.Attribute <: Expr
|
||||||
|
.Attribute.
|
||||||
|
value: Expr
|
||||||
|
attr: Str
|
||||||
|
ctx: ExprContext
|
||||||
|
|
||||||
.NamedExpr: ClassType
|
.NamedExpr: ClassType
|
||||||
.NamedExpr <: Expr
|
.NamedExpr <: Expr
|
||||||
|
@ -220,6 +247,9 @@
|
||||||
|
|
||||||
.Lambda: ClassType
|
.Lambda: ClassType
|
||||||
.Lambda <: Expr
|
.Lambda <: Expr
|
||||||
|
.Lambda.
|
||||||
|
args: Arguments
|
||||||
|
body: Expr
|
||||||
|
|
||||||
.Comprehension = 'comprehension': ClassType
|
.Comprehension = 'comprehension': ClassType
|
||||||
.Comprehension <: AST
|
.Comprehension <: AST
|
||||||
|
@ -257,22 +287,45 @@
|
||||||
keywords: [Keyword; _]
|
keywords: [Keyword; _]
|
||||||
body: [Stmt; _]
|
body: [Stmt; _]
|
||||||
decorator_list: [Expr; _]
|
decorator_list: [Expr; _]
|
||||||
|
|
||||||
.Return: ClassType
|
.Return: ClassType
|
||||||
.Return <: Stmt
|
.Return <: Stmt
|
||||||
|
.Return.
|
||||||
|
value: Expr or NoneType
|
||||||
|
|
||||||
.Delete: ClassType
|
.Delete: ClassType
|
||||||
.Delete <: Stmt
|
.Delete <: Stmt
|
||||||
|
.Delete.
|
||||||
|
targets: [Expr; _]
|
||||||
|
|
||||||
.Assign: ClassType
|
.Assign: ClassType
|
||||||
.Assign <: Stmt
|
.Assign <: Stmt
|
||||||
.Assign.
|
.Assign.
|
||||||
targets: [Expr; _]
|
targets: [Expr; _]
|
||||||
value: Expr
|
value: Expr
|
||||||
type_comment: Str or NoneType
|
type_comment: Str or NoneType
|
||||||
|
|
||||||
.TypeAlias: ClassType
|
.TypeAlias: ClassType
|
||||||
.TypeAlias <: Stmt
|
.TypeAlias <: Stmt
|
||||||
|
.TypeAlias.
|
||||||
|
name: Str
|
||||||
|
type_params: [TypeParam; _]
|
||||||
|
|
||||||
.AugAssign: ClassType
|
.AugAssign: ClassType
|
||||||
.AugAssign <: Stmt
|
.AugAssign <: Stmt
|
||||||
|
.AugAssign.
|
||||||
|
target: Expr
|
||||||
|
op: Operator
|
||||||
|
value: Expr
|
||||||
|
|
||||||
.AnnAssign: ClassType
|
.AnnAssign: ClassType
|
||||||
.AnnAssign <: Stmt
|
.AnnAssign <: Stmt
|
||||||
|
.AnnAssign.
|
||||||
|
target: Expr
|
||||||
|
annotation: Expr
|
||||||
|
value: Expr or NoneType
|
||||||
|
simple: Int
|
||||||
|
|
||||||
.For: ClassType
|
.For: ClassType
|
||||||
.For <: Stmt
|
.For <: Stmt
|
||||||
.For.
|
.For.
|
||||||
|
@ -280,20 +333,24 @@
|
||||||
iter: Expr
|
iter: Expr
|
||||||
body: [Stmt; _]
|
body: [Stmt; _]
|
||||||
orelse: [Stmt; _]
|
orelse: [Stmt; _]
|
||||||
|
|
||||||
.AsyncFor: ClassType
|
.AsyncFor: ClassType
|
||||||
.AsyncFor <: Stmt
|
.AsyncFor <: Stmt
|
||||||
|
|
||||||
.While: ClassType
|
.While: ClassType
|
||||||
.While <: Stmt
|
.While <: Stmt
|
||||||
.While.
|
.While.
|
||||||
test: Expr
|
test: Expr
|
||||||
body: [Stmt; _]
|
body: [Stmt; _]
|
||||||
orelse: [Stmt; _]
|
orelse: [Stmt; _]
|
||||||
|
|
||||||
.If: ClassType
|
.If: ClassType
|
||||||
.If <: Stmt
|
.If <: Stmt
|
||||||
.If.
|
.If.
|
||||||
test: Expr
|
test: Expr
|
||||||
body: [Stmt; _]
|
body: [Stmt; _]
|
||||||
orelse: [Stmt; _]
|
orelse: [Stmt; _]
|
||||||
|
|
||||||
.With: ClassType
|
.With: ClassType
|
||||||
.With <: Stmt
|
.With <: Stmt
|
||||||
.With.
|
.With.
|
||||||
|
@ -338,6 +395,10 @@
|
||||||
|
|
||||||
.Assert: ClassType
|
.Assert: ClassType
|
||||||
.Assert <: Stmt
|
.Assert <: Stmt
|
||||||
|
.Assert.
|
||||||
|
test: Expr
|
||||||
|
msg: Expr or NoneType
|
||||||
|
|
||||||
.Import: ClassType
|
.Import: ClassType
|
||||||
.Import <: Stmt
|
.Import <: Stmt
|
||||||
.Import.
|
.Import.
|
||||||
|
@ -365,20 +426,42 @@
|
||||||
.Pattern <: AST
|
.Pattern <: AST
|
||||||
.MatchValue: ClassType
|
.MatchValue: ClassType
|
||||||
.MatchValue <: Pattern
|
.MatchValue <: Pattern
|
||||||
|
.MatchValue.
|
||||||
|
value: Expr
|
||||||
.MatchSingleton: ClassType
|
.MatchSingleton: ClassType
|
||||||
.MatchSingleton <: Pattern
|
.MatchSingleton <: Pattern
|
||||||
|
.MatchSingleton.
|
||||||
|
value: Obj
|
||||||
.MatchSequence: ClassType
|
.MatchSequence: ClassType
|
||||||
.MatchSequence <: Pattern
|
.MatchSequence <: Pattern
|
||||||
|
.MatchSequence.
|
||||||
|
patterns: [Pattern; _]
|
||||||
.MatchMapping: ClassType
|
.MatchMapping: ClassType
|
||||||
.MatchMapping <: Pattern
|
.MatchMapping <: Pattern
|
||||||
|
.MatchMapping.
|
||||||
|
keys: [Expr; _]
|
||||||
|
patterns: [Pattern; _]
|
||||||
|
rest: Str
|
||||||
.MatchClass: ClassType
|
.MatchClass: ClassType
|
||||||
.MatchClass <: Pattern
|
.MatchClass <: Pattern
|
||||||
|
.MatchClass.
|
||||||
|
cls: Expr
|
||||||
|
patterns: [Pattern; _]
|
||||||
|
kwd_attrs: [Str; _]
|
||||||
|
kwd_patterns: [Pattern; _]
|
||||||
.MatchStar: ClassType
|
.MatchStar: ClassType
|
||||||
.MatchStar <: Pattern
|
.MatchStar <: Pattern
|
||||||
|
.MatchStar.
|
||||||
|
name: Str or NoneType
|
||||||
.MatchAs: ClassType
|
.MatchAs: ClassType
|
||||||
.MatchAs <: Pattern
|
.MatchAs <: Pattern
|
||||||
|
.MatchAs.
|
||||||
|
name: Str or NoneType
|
||||||
|
pattern: Pattern or NoneType
|
||||||
.MatchOr: ClassType
|
.MatchOr: ClassType
|
||||||
.MatchOr <: Pattern
|
.MatchOr <: Pattern
|
||||||
|
.MatchOr.
|
||||||
|
patterns: [Pattern; _]
|
||||||
|
|
||||||
.ExceptHandler: ClassType
|
.ExceptHandler: ClassType
|
||||||
.ExceptHandler <: AST
|
.ExceptHandler <: AST
|
||||||
|
@ -406,6 +489,28 @@
|
||||||
lineno: Int
|
lineno: Int
|
||||||
tag: Str
|
tag: Str
|
||||||
|
|
||||||
|
.TypeParam = 'type_param': ClassType
|
||||||
|
.TypeParam <: AST
|
||||||
|
|
||||||
|
.TypeVar: ClassType
|
||||||
|
.TypeVar <: TypeParam
|
||||||
|
.TypeVar.
|
||||||
|
name: Str
|
||||||
|
bound: Expr or NoneType
|
||||||
|
default_value: Expr or NoneType
|
||||||
|
|
||||||
|
.ParamSpec: ClassType
|
||||||
|
.ParamSpec <: TypeParam
|
||||||
|
.ParamSpec.
|
||||||
|
name: Str
|
||||||
|
default_value: Expr or NoneType
|
||||||
|
|
||||||
|
.TypeVarTuple: ClassType
|
||||||
|
.TypeVarTuple <: TypeParam
|
||||||
|
.TypeVarTuple.
|
||||||
|
name: Str
|
||||||
|
default_value: Expr or NoneType
|
||||||
|
|
||||||
.Arguments = 'arguments': ClassType
|
.Arguments = 'arguments': ClassType
|
||||||
.Arguments <: AST
|
.Arguments <: AST
|
||||||
.Arguments.
|
.Arguments.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue