summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/wavm/Include/WAVM/RegExp/RegExp.h
blob: 9d57c9772b47fdcc1b0f0f5a65ed1a3904caa461 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include "WAVM/Inline/BasicTypes.h"
#include "WAVM/NFA/NFA.h"

namespace WAVM { namespace RegExp {
	// Parses a regular expression from a string, and adds a recognizer for it to the given NFA
	// The recognizer will start from initialState, and end in finalState when the regular
	// expression has been completely matched.
	WAVM_API void addToNFA(const char* regexpString,
						   NFA::Builder* nfaBuilder,
						   NFA::StateIndex initialState,
						   NFA::StateIndex finalState);
}}