Skip to content

Commit

Permalink
update std::jule::ast
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 28, 2024
1 parent 0249836 commit 0f0bfa5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/std/jule-ast.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ struct ScopeTree {
unsafety: bool
deferred: bool
stmts: []Node
end: Token
}
```
Scope tree.
Expand Down Expand Up @@ -787,6 +788,7 @@ struct EnumDecl {
ident: str
kind: &TypeDecl
items: []&EnumItemDecl
end: Token
}
```
Enum declaration.
Expand Down Expand Up @@ -815,6 +817,7 @@ Field declaration.
```jule
struct StructDecl {
token: Token // From std::jule::lex
end: Token
ident: str
fields: []&FieldDecl
public: bool
Expand All @@ -830,6 +833,7 @@ Structure declaration.
```jule
struct TraitDecl {
token: Token // From std::jule::lex
end: Token
ident: str
public: bool
methods: []&FnDecl
Expand All @@ -841,6 +845,8 @@ Trait declaration.

```jule
struct Impl {
end: Token
// This token available for these cases:
// - Implementation trait to structure, represents trait's type.
base: &TypeDecl
Expand Down

0 comments on commit 0f0bfa5

Please sign in to comment.