aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lextest.cpp
blob: 9119a2af8a4830a29ce32ad029e83f04f9ea146e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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;
}