main.cpp 609 Bytes
Newer Older
Jesse Beder's avatar
Jesse Beder committed
1
#include "document.h"
2
#include "regex.h"
Jesse Beder's avatar
Jesse Beder committed
3
4
5

int main()
{
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
	YAML::RegEx alpha = YAML::RegEx('a', 'z') || YAML::RegEx('A', 'Z');
	alpha.Matches("a");
	alpha.Matches("d");
	alpha.Matches("F");
	alpha.Matches("0");
	alpha.Matches("5");
	alpha.Matches(" ");

	YAML::RegEx blank = YAML::RegEx(' ') || YAML::RegEx('\t');
	YAML::RegEx docstart = YAML::RegEx("---") + (blank || YAML::RegEx(EOF) || YAML::RegEx());
	docstart.Matches("--- ");
	docstart.Matches("... ");
	docstart.Matches("----");
	docstart.Matches("---\t");
	docstart.Matches("---");

Jesse Beder's avatar
Jesse Beder committed
22
23
24
25
	YAML::Document doc("test.yaml");

	return 0;
}