Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
LabComm
Commits
b9ad7d5c
Commit
b9ad7d5c
authored
Feb 11, 2015
by
Sven Gestegård Robertz
Browse files
added types to documentation
parent
6f8eb61c
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/tech_report.tex
View file @
b9ad7d5c
...
...
@@ -519,6 +519,7 @@ Field ::= Type <Name:String>;
abstract Type;
VoidType : Type;
SampleRefType : Type;
PrimType : Type ::= <Name:String> <Token:int>;
UserType : Type ::= <Name:String>;
StructType : Type ::= Field*;
...
...
@@ -592,9 +593,10 @@ The built-in data types are encoded as follows:
<string
_
length>:= 0x00..0xffffffff
<char> := any UTF-8 char
<type> := <length> ( <basic
_
type> | <array
_
decl> | <struct
_
decl> | <type
_
id> )
<basic
_
type> := ( <boolean
_
type> | <byte
_
type> | <short
_
type> |
<basic
_
type> := (
<void
_
type> |
<boolean
_
type> | <byte
_
type> | <short
_
type> |
<integer
_
type> | <long
_
type> | <float
_
type> |
<double
_
type> | <string
_
type> )
<double
_
type> | <string
_
type> | <sample
_
ref>)
<void
_
type> := <struct
_
decl> 0 //void is encoded as empty struct
<boolean
_
type> := 0x20
<byte
_
type> := 0x21
<short
_
type> := 0x22
...
...
@@ -603,6 +605,7 @@ The built-in data types are encoded as follows:
<float
_
type> := 0x25
<double
_
type> := 0x26
<string
_
type> := 0x27
<sample
_
ref> := 0x28
<array
_
decl> := 0x10 <number
_
of
_
indices> <indices> <type>
<number
_
of
_
indices> := 0x00..0xffffffff
<indices> := ( <variable
_
index> | <fixed
_
index> )*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment