Simplified the example

This commit is contained in:
Paul Ferrand 2019-12-03 01:37:58 +01:00
parent 55e6d96873
commit 4f19628d53

View file

@ -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