Skip to content

Commit

Permalink
update std
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 22, 2023
1 parent ae4b869 commit 45cde5c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions src/standard-library/std-jule-ast.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Type of Iter's kind.
```jule
struct Ast {
file: &File // From std::jule::lex
top_directives: Vector[&Directive]
use_decls: Vector[&UseDecl]
impls: Vector[&Impl]
comments: Vector[&Comment]
top_directives: []&Directive
use_decls: []&UseDecl
impls: []&Impl
comments: []&Comment
// Possible types:
// &EnumDecl
Expand All @@ -35,7 +35,7 @@ struct Ast {
// &TraitDecl
// &TypeAliasDecl
// &VarDecl
decls: Vector[Node]
decls: []Node
}
```
Abstract syntax tree.
Expand Down
2 changes: 1 addition & 1 deletion src/standard-library/std-jule-lex.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Returns filename.
`fn addr(self): uintptr`\
Returns self as uintptr.

`fn tokens(mut self): Vector[Token]`\
`fn tokens(mut self): []Token`\
Returns tokens of file.\
Tokens are mutable.

Expand Down
22 changes: 11 additions & 11 deletions src/standard-library/std-jule-sema.md
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ struct Scope {
parent: &Scope
unsafety: bool
deferred: bool
stmts: Vector[St]
stmts: []St
}
```
Scope.
Expand Down Expand Up @@ -1037,16 +1037,16 @@ Directive pass.

```jule
struct SymbolTable {
file: &File // Owner fileset of this symbol table.
passes: Vector[Pass] // All passed flags with jule:pass directive.
imports: Vector[&ImportInfo] // Imported packages.
vars: Vector[&Var] // Variables.
type_aliases: Vector[&TypeAlias] // Type aliases.
structs: Vector[&Struct] // Structures.
funcs: Vector[&Fn] // Functions.
traits: Vector[&Trait] // Traits.
enums: Vector[&Enum] // Enums.
impls: Vector[&Impl] // Implementations.
file: &File // Owner fileset of this symbol table.
passes: []Pass // All passed flags with jule:pass directive.
imports: []&ImportInfo // Imported packages.
vars: []&Var // Variables.
type_aliases: []&TypeAlias // Type aliases.
structs: []&Struct // Structures.
funcs: []&Fn // Functions.
traits: []&Trait // Traits.
enums: []&Enum // Enums.
impls: []&Impl // Implementations.
}
```
Structure instance.
Expand Down

0 comments on commit 45cde5c

Please sign in to comment.