Skip to content

edubois/spiritiz

Repository files navigation

Spiritiz

  • spiritiz is a base of boost::spirit examples

  • Done by Eloi du Bois

  • LICENSE: LGPLv3

Compilation

To compile, you will need boost and scons:

First, clone the repository:

git clone https://github.com/edubois/spiritiz.git
cd spiritiz
git submodule update -i

This should bring tools/sconsProject

now, go into tools/sconsProject

and do (this is mandatory):

git checkout precompiled_header_proposal

Now, it's time to edit default.sconf according to your configuration. In the default configuration, I made a parent directory 3rdParties where I put my 3rd party libraries. To change your external libraries base dir, edit the variable extern in this file (default.sconf). If you are using Mac, adapt the last lines according to your XCode configuration. If you are not using Mac, remove the lines after '# Mac only'

When you are ready, enter:

scons mode=release

This will build the default example application.

Examples

Please note that scons example_name will build the example in question

  • spiritizExample1

Usage: spiritizExample1 spiritzExample1.input

This example needs a file having lines of this kind:

12*3-4*1
2 +3-4*3
2+3*4*3

The parser output all computed results in a vector, the program iterates over the vector and display results.

  • m3uParser

Usage: m3uParser absolute-paths.m3u

Should output the result of the m3u parsing (a vector<m3uParser::PlaylistItem> ):

Playlist items: 
---
Filename: "file:///Users/admin/Creations/Boheme-intro.ogg"
Duration: 166
Infos: Djarwood - Boheme introduction - Other infos
---
Filename: "file:///Users/admin/Creations/Boheme-intermede.ogg"
Duration: 134
Infos: Boheme intermede
---
Filename: "file:///Users/admin/Creations/Boheme-end.ogg"
Duration: 126
Infos: Djarwood - Boheme ending

About

Spiritiz is a base of boost::spirit examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published