#103656 - Argue - Sat Sep 23, 2006 4:16 pm
Hello again everyone, I've been trying to add an SGF file parser to the Go program I've been working on, and I wanted to use the Boost::Spirit library. It seemed to compile fine, but right now, I have no way of parsing the file.
Boost::Spirit either parses from a string (and I don't want to store a huge text file in a string), or from a file_iterator, which is defined in Boost::Spirit. However, I cannot use file_iterator, because it uses standard i/o functions (like fopen and fseek), which as far as I know, are not available--I'm using Chism's FAT library.
In some other threads here, I noticed some people making reference to Boost, so I thought someone might have already tried using Spirit with a DS game. Does anyone have any suggestions on what I can do to make a file iterator that works with both a Supercard and Spirit?
I decided to make a new thread instead of bumping my old one because I'd love to hear Boost+libnds discussion/success stories in general, whether related to my problem or not. :)
Boost::Spirit either parses from a string (and I don't want to store a huge text file in a string), or from a file_iterator, which is defined in Boost::Spirit. However, I cannot use file_iterator, because it uses standard i/o functions (like fopen and fseek), which as far as I know, are not available--I'm using Chism's FAT library.
In some other threads here, I noticed some people making reference to Boost, so I thought someone might have already tried using Spirit with a DS game. Does anyone have any suggestions on what I can do to make a file iterator that works with both a Supercard and Spirit?
I decided to make a new thread instead of bumping my old one because I'd love to hear Boost+libnds discussion/success stories in general, whether related to my problem or not. :)