Simplified the example
This commit is contained in:
parent
55e6d96873
commit
4f19628d53
1 changed files with 2 additions and 6 deletions
|
|
@ -138,12 +138,8 @@ private:
|
||||||
|
|
||||||
The main function is then quite straightforward and we call a function from the Parser class that loads a file
|
The main function is then quite straightforward and we call a function from the Parser class that loads a file
|
||||||
```cpp
|
```cpp
|
||||||
int main(int argc, char** argv)
|
|
||||||
{
|
|
||||||
PrintingParser parser;
|
PrintingParser parser;
|
||||||
parser.loadSfzFile("my_sfz_file.sfz");
|
parser.loadSfzFile("my_sfz_file.sfz");
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
If you circle back to the parser you will see that opcodes are stored in an `Opcode` class. This class does some parsing
|
If you circle back to the parser you will see that opcodes are stored in an `Opcode` class. This class does some parsing
|
||||||
itself and separates the opcode name itself, parameters if any, and the value. Opcodes are very cheap to copy and pass
|
itself and separates the opcode name itself, parameters if any, and the value. Opcodes are very cheap to copy and pass
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue