Example program to test JLANG::JToken class.  
More...
#include <iostream>
#include <iomanip>
#include <vector>
#include "JLang/JToken.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JLANG::JToken class. 
- Author
 - mdejong 
 
Definition in file JToken.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 18 of file JToken.cc.
   29     JParser<> zap(
"Example program to test token parsing.");
 
   36   catch(
const exception &error) {
 
   37     FATAL(error.what() << endl);
 
   41   DEBUG(argv[0] << 
" parse input with separator '" << JToken_t::SEPARATOR << 
"'" << endl); 
 
   43   for (
size_t i = 0; 
i != buffer.size(); ++
i) {
 
   44     cout << 
"[" << setw(2) << 
i << 
"] " << buffer[
i] << endl;
 
Utility class to parse command line options. 
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
Wrapper class around string. 
 
#define DEBUG(A)
Message macros.