aboutsummaryrefslogblamecommitdiffstats
path: root/tests/lextest.cpp
blob: 9119a2af8a4830a29ce32ad029e83f04f9ea146e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                   


                          
 
                               



                                           
                        

                   
                        

                   
                        

                          
                        


                     
                 
 
#include <iostream>
#include <rawld.h>
#ifndef NO_SWORD_NAMESPACE
using namespace sword;
#endif

int main(int argc, char **argv)
{
	RawLD::createModule("tmp/lextest");
	RawLD lex("tmp/lextest");

	lex.setKey("b");
	lex << "x";

	lex.setKey("a");
	lex << "x";

	lex.setKey("a");
	lex.deleteEntry();

//	lex.setKey("a");
//	lex << "y";

	lex = BOTTOM;
	return 0;
}