Skip to content

Commit 7074a9c

Browse files
author
Shuao Xiong
committed
A simple C subset compiler
Curriculum project of Compiler Principles.
0 parents  commit 7074a9c

11 files changed

Lines changed: 9796 additions & 0 deletions

File tree

mylexer.cpp

Lines changed: 1175 additions & 0 deletions
Large diffs are not rendered by default.

mylexer.h

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/****************************************************************************
2+
* U N R E G I S T E R E D C O P Y
3+
*
4+
* You are on day 84 of your 30 day trial period.
5+
*
6+
* This file was produced by an UNREGISTERED COPY of Parser Generator. It is
7+
* for evaluation purposes only. If you continue to use Parser Generator 30
8+
* days after installation then you are required to purchase a license. For
9+
* more information see the online help or go to the Bumble-Bee Software
10+
* homepage at:
11+
*
12+
* http://www.bumblebeesoftware.com
13+
*
14+
* This notice must remain present in the file. It cannot be removed.
15+
****************************************************************************/
16+
17+
/****************************************************************************
18+
* mylexer.h
19+
* C++ header file generated from mylexer.l.
20+
*
21+
* Date: 12/15/08
22+
* Time: 08:20:04
23+
*
24+
* ALex Version: 2.06
25+
****************************************************************************/
26+
27+
#ifndef _MYLEXER_H
28+
#define _MYLEXER_H
29+
30+
#include <yyclex.h>
31+
32+
/////////////////////////////////////////////////////////////////////////////
33+
// mylexer
34+
35+
#ifndef YYEXPLEXER
36+
#define YYEXPLEXER
37+
#endif
38+
39+
class YYEXPLEXER YYFAR mylexer : public _YL yyflexer {
40+
public:
41+
mylexer();
42+
virtual ~mylexer();
43+
44+
// backards compatibility with lex
45+
#ifdef input
46+
virtual int yyinput();
47+
#endif
48+
#ifdef output
49+
virtual void yyoutput(int ch);
50+
#endif
51+
#ifdef unput
52+
virtual void yyunput(int ch);
53+
#endif
54+
55+
protected:
56+
void yytables();
57+
virtual int yyaction(int action);
58+
59+
public:
60+
#line 106 ".\\mylexer.l"
61+
62+
// place any extra class members here
63+
64+
#line 65 "mylexer.h"
65+
};
66+
67+
#ifndef YYLEXERNAME
68+
#define YYLEXERNAME mylexer
69+
#endif
70+
71+
#ifndef INITIAL
72+
#define INITIAL 0
73+
#endif
74+
75+
#endif

0 commit comments

Comments
 (0)