mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
337 lines
11 KiB
Markdown
337 lines
11 KiB
Markdown
# 索引
|
||
|
||
[](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/syntax/indexes.md&commit_hash=96b113c47ec6ca7ad91a6b486d55758de00d557d)
|
||
|
||
有关不在此索引中的 API,请参阅 [此处](../API/index.md)
|
||
|
||
有关术语,请参见 [此处](../terms.md)
|
||
|
||
## 符号
|
||
|
||
* ! → [side effect](./07_side_effect.md)
|
||
* !-type → [mutable type](./type/18_mut.md)
|
||
* ? → [error handling](./30_error_handling.md)
|
||
* # → [Str](./00_basic.md/#注释)
|
||
* $ → [shared](./type/advanced/shared.md)
|
||
* %
|
||
* &
|
||
* &&
|
||
* [′ (single quote)](./20_naming_rule.md)
|
||
* [" (double quote)](./01_literal.md)
|
||
* () → [Tuple](./11_tuple.md)
|
||
* *
|
||
* * → [*-less multiplication](./01_literal.md/#less-乘法)
|
||
* + (前置) → [operator](./06_operator.md)
|
||
* +_ → + (前置)
|
||
* + (中置) → [operator](./06_operator.md)
|
||
* + (中置) → [Trait](./type/03_trait.md)
|
||
* ,
|
||
* − (前置)
|
||
* −_ → − (前置)
|
||
* − (中置) → [operator](./06_operator.md)
|
||
* − (中置) → [Trait](./type/03_trait.md)
|
||
* −> → [anonymous function](./21_lambda.md)
|
||
* . → [Visibility](./19_visibility.md)
|
||
* [... assignment](./28_spread_syntax.md)
|
||
* [... Extract assignment](./28_spread_syntax.md)
|
||
* [... function](./04_function.md)
|
||
* /
|
||
* :
|
||
* : → [Colon application style](./04_function.md)
|
||
* : → [Declaration](./03_declaration.md)
|
||
* : → [Keyword Arguments](./04_function.md)
|
||
* :: → [visibility](./19_visibility.md)
|
||
* := → [default parameters](./04_function.md)
|
||
* ;
|
||
* <
|
||
* <: → [Subtype specification](./type/02_basic.md)
|
||
* <<
|
||
* <=
|
||
* = → [Variable](./19_visibility.md)
|
||
* ==
|
||
* => → [procedure](./08_procedure.md)
|
||
* >
|
||
* >>
|
||
* >=
|
||
* @ → [decorator](./29_decorator.md)
|
||
* [] → [Array](./10_array.md)
|
||
* \ → [Indention](./00_basic.md)
|
||
* \ → [Str](./01_literal.md)
|
||
* ^
|
||
* ^^
|
||
* _ → [Type erasure](./type/advanced/erasure.md)
|
||
* _+_ → + (infix)
|
||
* _-_ → − (infix)
|
||
* [`` (back quote)](./22_subroutine.md)
|
||
* {}
|
||
* [{} type](./type/01_type_system.md)
|
||
* {:}
|
||
* {=} → [Type System](./type/01_type_system.md)
|
||
* [{=} type](./13_record.md)
|
||
* |
|
||
* || → [Type variable list](./type/advanced/)
|
||
* ~
|
||
|
||
## 拉丁字母
|
||
|
||
### A
|
||
|
||
* [Add]
|
||
* [alias](type/02_basic.md)
|
||
* [Aliasing](./type/02_basic.md)
|
||
* [algebraic type](./type/13_algebraic.md)
|
||
* [And]
|
||
* [and]
|
||
* [anonymous function](./21_lambda.md)
|
||
* [Anonymous polycorrelation coefficient](./21_lambda.md)
|
||
* anonymous type → [Type System](./type/01_type_system.md)
|
||
* [Array](./10_array.md)
|
||
* [assert]
|
||
* [Attach](./29_decorator.md)
|
||
* [attribute](type/09_attributive.md)
|
||
* [Attribute definitions](./type/02_basic.md)
|
||
* [Attribute Type](./type/09_attributive.md)
|
||
|
||
### B
|
||
|
||
* [Bool, Boolean](./01_literal.md)
|
||
* [Boolean Object](./01_literal.md)
|
||
* [borrow](./18_ownership.md)
|
||
|
||
### C
|
||
|
||
* [Cast](./type/17_type_casting.md)
|
||
* [Comments](./00_basic.md)
|
||
* [Complex Object](./01_literal.md)
|
||
* [Compile-time functions](./04_function.md)
|
||
* [circular references](./18_ownership.md)
|
||
* [Class](./type/04_class.md)
|
||
* [Class Relationship](./type/04_class.md)
|
||
* [Class upcasting](./type/16_subtyping.md)
|
||
* [Colon application style](./04_function.md)
|
||
* [Closure](./23_closure.md)
|
||
* [Compound Literals](./01_literal.md)
|
||
* [Complement](./type/13_algebraic.md)
|
||
* [Comprehension](./27_comprehension.md)
|
||
* [constant](./17_mutability.md)
|
||
* [Constants](./02_name.md)
|
||
* [Context](./30_error_handling.md)
|
||
|
||
### D
|
||
|
||
* [Data type](./type/01_type_system.md)
|
||
* [Declaration](./03_declaration.md)
|
||
* [decorator](./29_decorator.md)
|
||
* [Default parameters](./04_function.md)
|
||
* [Del](./02_name.md)
|
||
* [Dependent Type](./type/14_dependent.md)
|
||
* [Deconstructing a record](13_record.md)
|
||
* Deprecated
|
||
* [Dict](./12_dict.md)
|
||
* [Diff](./type/13_algebraic.md)
|
||
* [Difference from Data Class](./type/04_class.md)
|
||
* [Difference from structural types](type/04_class.md)
|
||
* distinct
|
||
* [Downcasting](./type/17_type_casting.md)
|
||
|
||
### E
|
||
|
||
* [Empty Record](./13_record.md)
|
||
* [Enum Class](./type/04_class.md)
|
||
* [Enum type](./type/11_enum.md)
|
||
* [Enumerated, Interval and Refinement Types](./type/12_refinement.md)
|
||
* [error handling](./30_error_handling.md)
|
||
* [Existential type](./type/advanced/existential.md)
|
||
* [Exponential Literal](./01_literal.md)
|
||
* [Extract assignment](./28_spread_syntax.md)
|
||
|
||
### F
|
||
|
||
* False → [Boolean Object](./01_literal.md)
|
||
* [Float&sbsp;Object](./01_literal.md)
|
||
* [for](./05_builtin_funcs.md)
|
||
* [For-All Patch](./type/07_patch.md)
|
||
* [For all types](./type/15_quantified.md)
|
||
* [freeze](./18_ownership.md)
|
||
* [Function](./04_function.md)
|
||
* [Function definition with multiple patterns](./04_function.md)
|
||
|
||
### G
|
||
|
||
* [GADTs(Generalized Algebraic Data Types)](./type/advanced/GADTs.md)
|
||
* [Generator](./34_generator.md)
|
||
* [Glue Patch](./type/07_patch.md)
|
||
|
||
### H
|
||
|
||
### I
|
||
|
||
* [id](./09_builtin_procs.md)
|
||
* [if](./05_builtin_funcs.md)
|
||
* [import](./33_package_system.md)
|
||
* [impl](./29_decorator.md)
|
||
* [in]
|
||
* [Indention](./00_basic.md)
|
||
* [Instant Block](./13_record.md)
|
||
* [Instance and class attributes](./type/04_class.md)
|
||
* [Implementing and resolving duplicate traits in the API](type/03_trait.md)
|
||
* [inheritable](./29_decorator.md)
|
||
* [inheritance](./type/05_inheritance.md)
|
||
* [Inheritance of Enumerated Classes](./type/05_inheritance.md)
|
||
* [Int](./01_literal.md)
|
||
* [Integration with Python](./32_integration_with_Python.md)
|
||
* [Interval Type](./type/10_interval.md)
|
||
* [Intersection](./type/13_algebraic.md)
|
||
* [Iterator](./16_iterator.md)
|
||
|
||
### J
|
||
|
||
### K
|
||
|
||
* [Keyword arguments](./04_function.md)
|
||
* [Kind](./type/advanced/kind.md)
|
||
|
||
### L
|
||
|
||
* lambda → [anonymous function](./21_lambda.md)
|
||
* let-polymorphism → [rank 1 polymorphism]
|
||
* [Literal Identifiers](./20_naming_rule.md)
|
||
* log → [side effect](./07_side_effect.md)
|
||
|
||
### M
|
||
|
||
* [match]
|
||
* [Marker Trait](./type/advanced/marker_trait.md)
|
||
* [Method](./07_side_effect.md)
|
||
* Modifier → [decorator](./29_decorator.md)
|
||
* [module](./24_module.md)
|
||
* [Multiple Inheritance](type/05_inheritance.md)
|
||
* [Multi-layer (multi-level) Inheritance](type/05_inheritance.md)
|
||
* [Mutable Type](./type/18_mut.md)
|
||
* [Mutable Structure Type](./type/advanced/mut_struct.md)
|
||
* [Mutability](./17_mutability.md)
|
||
|
||
### N
|
||
|
||
* [Nat](./01_literal.md)
|
||
* [Never]
|
||
* [New type](./type/advanced/newtype.md)
|
||
* [Heterogeneous Dict](./12_dict.md)
|
||
* None → [None Object]
|
||
* [None Object]
|
||
* Nominal Subtyping → [Class](./type/04_class.md)
|
||
* [Not]
|
||
* [not]
|
||
|
||
### O
|
||
|
||
* [Object](./25_object_system.md)
|
||
* [Option]
|
||
* [Or]
|
||
* [or]
|
||
* [Ord]
|
||
* [ownership system](./18_ownership.md)
|
||
* [Overloading](./type/advanced/overloading.md)
|
||
* [Overriding](./type/05_inheritance.md)
|
||
* [Override in Trait](./type/03_trait.md)
|
||
|
||
### P
|
||
|
||
* [Panic](./30_error_handling.md)
|
||
* [Patch](./type/07_patch.md)
|
||
* [Pattern match](./26_pattern_matching.md)
|
||
* [Phantom class](./type/advanced/phantom.md)
|
||
* [pipeline operator](./31_pipeline.md)
|
||
* [Predicate](./type/19_bound.md)
|
||
* [print!]
|
||
* [Procedures](./08_procedure.md)
|
||
* [Projection Type](./type/advanced/projection.md)
|
||
* Python → [Integration with Python](./32_integration_with_Python.md)
|
||
|
||
### Q
|
||
|
||
* [Quantified Type](./type/15_quantified.md)
|
||
* [Quantified Dependent Type](./type/advanced/quantified_dependent.md)
|
||
* [Quantified Types and Dependent Types](./type/15_quantified.md)
|
||
|
||
### R
|
||
|
||
* [Range Object](./01_literal.md)
|
||
* [ref]
|
||
* [ref!]
|
||
* [Record](./13_record.md)
|
||
* [Record Type Composite](./type/09_attributive.mda12_refinement.md)
|
||
* [Recursive functions](./04_function.md)
|
||
* [Refinement pattern](./type/12_refinement.md)
|
||
* [Refinement Type](./type/12_refinement.md)
|
||
* [replication](./18_ownership.md)
|
||
* [Replacing Traits](./type/05_inheritance.md)
|
||
* Result → [error handling](./30_error_handling.md)
|
||
* [Rewriting Inherited Attributes](./type/05_inheritance.md)
|
||
* rootobj
|
||
|
||
### S
|
||
|
||
* [Script](./00_basic.md)
|
||
* [Selecting Patches](./type/07_patch.md)
|
||
* self
|
||
* [Self](./type/advanced/special.md)
|
||
* [Shared Reference](./type/advanced/shared.md)
|
||
* [side-effect](./07_side_effect.md)
|
||
* [Smart Cast](./type/12_refinement.md)
|
||
* [Spread assignment](./28_spread_syntax.md)
|
||
* [special type variables](./type/advanced/special.md)
|
||
* [Stack trace](30_error_handling.md)
|
||
* [Structure type](./type/01_type_system.md)
|
||
* [Structural Patch](./type/07_patch.md)
|
||
* [Structural Trait](./type/03_trait.md)
|
||
* [Structural Subtyping](./type/01_type_system.md)
|
||
* [Structural types and class type relationships](./type/16_subtyping.md)
|
||
* [Str](./01_literal.md)
|
||
* [Subtyping](./type/16_subtyping.md)
|
||
* [Subtyping of subroutines](./type/16_subtyping.md)
|
||
* [Subtype specification](./type/02_basic.md)
|
||
* [Subtyping of Polymorphic Function Types](./type/15_quantified.md)
|
||
* [Subroutine Signatures](./22_subroutine.md)
|
||
|
||
### T
|
||
|
||
* [Test](./29_decorator.md)
|
||
* [Traits](./type/03_trait.md)
|
||
* [Trait inclusion](./type/03_trait.md)
|
||
* True → [Boolean Object](./01_literal.md)
|
||
* [True Algebraic type](./type/13_algebraic.md)
|
||
* [Type]
|
||
* [type](./15_type.md)
|
||
* [Type arguments in method definitions](./type/15_quantified.md)
|
||
* [Type Bound](./type/19_bound.md)
|
||
* [Type Definitions](./type/01_type_system.md)
|
||
* [Type erasure](./type/advanced/erasure.md)
|
||
* [Type Inference System](./type/01_type_system.md)
|
||
* [Type specification](./type/02_basic.md)
|
||
* [Type System](./type/01_type_system.md)
|
||
* [Type Widening](./type/advanced/widening.md)
|
||
* [Tuple](./11_tuple.md)
|
||
|
||
### U
|
||
|
||
* [union](type/13_algebraic.md)
|
||
* [Unit](./11_tuple.md)
|
||
* [Upcasting](type/17_type_casting.md)
|
||
* [Usage of Inheritance](./type/05_inheritance.md)
|
||
|
||
### V
|
||
|
||
* [Value Type](./type/08_value.md)
|
||
* [Variable](./02_name.md)
|
||
* [variable-length arguments](./04_function.md)
|
||
|
||
### W
|
||
|
||
* [while]
|
||
|
||
### X
|
||
|
||
### Y
|
||
|
||
### Z
|