Update 'Body'
parent
b22ab8cb67
commit
d931921a5f
14
Body.md
Normal file
14
Body.md
Normal file
@ -0,0 +1,14 @@
|
||||
The body section contains the actual code, as well as things like type
|
||||
definitions. Every "thing" in ARF that has global scope is called a section.
|
||||
Listed below are all the kinds of sections ARF supports:
|
||||
|
||||
- type: a "blind" type definition (similar to typedef in C)
|
||||
- objt: a structured type definition (similar to a class)
|
||||
- enum: an enumerated type definition
|
||||
- face: an interface type (similar to an interface in Go)
|
||||
- data: a global variable
|
||||
- func: a function definition
|
||||
|
||||
Sections definitions are hoisted so there is no need for prototyping things.
|
||||
All sections in a module must have a unique name within that module no matter
|
||||
what kind of section it is.
|
Reference in New Issue
Block a user