Home Libraries Author Links

matchtst.c File Reference


Detailed Description

Implementation of an interactive console program demonstrating the usage and testing the implementation of pattern matching in strings by means of regular expressions.

Version:
1.12-r341
Date:
2007-12-04 08:40:24 (Tom)
Author:
Tom Michaelis
SysToMath
Wittelsbacherstr. 7
D-80469 Munich
Contact:
http://www.SysToMath.com
mailto:Tom.Michaelis@SysToMath.com
This C program file contains the implementation of data types and functions realizing tests of the abstract data types StmReCtrl and StmRe for pattern matching in strings by means of regular expressions. They are specified in the C header file match.h belonging to the SysToMath Base C Library libstmbase.

Definition in file matchtst.c.

Go to the source code of this file.

Data Structures

struct  MatchTstEnv
 Match environment. More...

Typedefs

typedef struct MatchTstEnv MatchTstEnv
 Type name of the match environment MatchTstEnv.

Functions

static void defsreact (StmReCtrl reCtrl)
 Definition of regular expression StmRe objects and of qualified regular expression action functions.
static int incLineNumber (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action inclnr.
static int out (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action out.
static int printIdent (StmMtcFctCmd cmd, StmReMtc reMtc)
 Regular expression action function for the StmRe object ident.
static char * mkCtrl (char *str)
 In-place generation of C escape sequences.
int main (int argc, char **argv)
 Main function implementing the command matchtst.


© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).