[Bio] / smc / sml.l Repository:
ViewVC logotype

View of /smc/sml.l

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (download) (annotate) (vendor branch)
Thu Aug 21 17:00:03 2003 UTC (16 years, 3 months ago) by efrank
Branch: MAIN, oma-04Jun1993
CVS Tags: anl000, HEAD
Changes since 1.1: +0 -0 lines
State machine compiler from Bob Marting (R. C. Martin) at Object Mentor Associates.
Has a few small compilation fixes.

We have this code without explicit permission.  We ar evaluating extensions.
Do not distribute..but I think we're consistent with its usage requirements

%{
/* $Id: sml.l,v 1.1.1.1 2003/08/21 17:00:03 efrank Exp $
/*--------------------------------------------------------
/*Name
/*	sm.l -- Lexical functions for parsing StateMap files..
/*
/*Description
/*	This LEX file specifies the lexical analysis necessary for the
/*	tokenization of Statemap specification files.
/*
/*See Also
/*	sm.y
/*
/*Author(s)
/*	R. Martin
/*
/*Date/History
/*  30 May 93 0942
/*    Change to "Context Derived" form.
/*
/*	27 Jun 91 0936
/**/


#include "smy.h"

extern YYSTYPE yylval;
int lineNumber;

%}

%% /* start the lexical rules */

FSMNAME			|
fsmname 		|
FSMName 		|
FsmName 		{
				return(C_FSMNAME);
				}

CONTEXT			|
context			|
Context			{
				return(C_CONTEXT);
				}

INITIAL         |
Initial         |
initial         {
                return(C_INITIAL);
                }

HEADER			|
Header			|
header			{
				return(C_HEADER);
				}

Version.*\n		|
version.*\n		|
VERSION.*\n		{
				strcpy(yylval.s, yytext);
				lineNumber++;
				return(C_VERSION);
				}

[{}\*():]		{
				return(yytext[0]);
				}

[A-Za-z][A-Za-z0-9._]*	{
				strcpy(yylval.s, yytext);
				return(WORD);
				}

\/\/.*\n		|
\n				{
				lineNumber++;
				}

\/\*.*\*\/		|
\t				|
" "				;

%%



MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3