⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scan.v

📁 一个C语言的编译器
💻 V
📖 第 1 页 / 共 2 页
字号:
#############################################################################
#                     U N R E G I S T E R E D   C O P Y
# 
# You are on day 49 of your 30 day trial period.
# 
# This file was produced by an UNREGISTERED COPY of Parser Generator. It is
# for evaluation purposes only. If you continue to use Parser Generator 30
# days after installation then you are required to purchase a license. For
# more information see the online help or go to the Bumble-Bee Software
# homepage at:
# 
# http://www.bumblebeesoftware.com
# 
# This notice must remain present in the file. It cannot be removed.
#############################################################################

#############################################################################
# scan.v
# Lex verbose file generated from scan.l.
# 
# Date: 12/23/08
# Time: 20:50:56
# 
# ALex Version: 2.06
#############################################################################


#############################################################################
# Expressions
#############################################################################

    1  "int"

    2  "float"

    3  "char"

    4  "void"

    5  "if"

    6  "else"

    7  "while"

    8  "for"

    9  "return"

   10  "input"

   11  "output"

   12  "++"

   13  "--"

   14  "<"

   15  "<="

   16  ">"

   17  ">="

   18  "=="

   19  "+"

   20  "-"

   21  "*"

   22  "/"

   23  "%"

   24  "!="

   25  "&&"

   26  "||"

   27  "!"

   28  "<<"

   29  ">>"

   30  "~"

   31  "&"

   32  "|"

   33  "^"

   34  "="

   35  ";"

   36  ","

   37  "("

   38  ")"

   39  "["

   40  "]"

   41  "{"

   42  "}"

   43  [_a-zA-Z][_a-zA-Z0-9]*

   44  [0-9]+

   45  [0-9]+"."[0-9]+

   46  '.'

   47  \n

   48  [ \t]+

   49  "//"

   50  "/*"

   51  .


#############################################################################
# States
#############################################################################

state 1
	INITIAL

	0x00 - 0x08 (9)    goto 3
	0x09               goto 4
	0x0a               goto 5
	0x0b - 0x1f (21)   goto 3
	0x20               goto 4
	0x21               goto 6
	0x22 - 0x24 (3)    goto 3
	0x25               goto 7
	0x26               goto 8
	0x27               goto 9
	0x28               goto 10
	0x29               goto 11
	0x2a               goto 12
	0x2b               goto 13
	0x2c               goto 14
	0x2d               goto 15
	0x2e               goto 3
	0x2f               goto 16
	0x30 - 0x39 (10)   goto 17
	0x3a               goto 3
	0x3b               goto 18
	0x3c               goto 19
	0x3d               goto 20
	0x3e               goto 21
	0x3f - 0x40 (2)    goto 3
	0x41 - 0x5a (26)   goto 22
	0x5b               goto 23
	0x5c               goto 3
	0x5d               goto 24
	0x5e               goto 25
	0x5f               goto 22
	0x60               goto 3
	0x61 - 0x62 (2)    goto 22
	0x63               goto 26
	0x64               goto 22
	0x65               goto 27
	0x66               goto 28
	0x67 - 0x68 (2)    goto 22
	0x69               goto 29
	0x6a - 0x6e (5)    goto 22
	0x6f               goto 30
	0x70 - 0x71 (2)    goto 22
	0x72               goto 31
	0x73 - 0x75 (3)    goto 22
	0x76               goto 32
	0x77               goto 33
	0x78 - 0x7a (3)    goto 22
	0x7b               goto 34
	0x7c               goto 35
	0x7d               goto 36
	0x7e               goto 37
	0x7f - 0xff (129)  goto 3


state 2
	^INITIAL

	0x00 - 0x08 (9)    goto 3
	0x09               goto 4
	0x0a               goto 5
	0x0b - 0x1f (21)   goto 3
	0x20               goto 4
	0x21               goto 6
	0x22 - 0x24 (3)    goto 3
	0x25               goto 7
	0x26               goto 8
	0x27               goto 9
	0x28               goto 10
	0x29               goto 11
	0x2a               goto 12
	0x2b               goto 13
	0x2c               goto 14
	0x2d               goto 15
	0x2e               goto 3
	0x2f               goto 16
	0x30 - 0x39 (10)   goto 17
	0x3a               goto 3
	0x3b               goto 18
	0x3c               goto 19
	0x3d               goto 20
	0x3e               goto 21
	0x3f - 0x40 (2)    goto 3
	0x41 - 0x5a (26)   goto 22
	0x5b               goto 23
	0x5c               goto 3
	0x5d               goto 24
	0x5e               goto 25
	0x5f               goto 22
	0x60               goto 3
	0x61 - 0x62 (2)    goto 22
	0x63               goto 26
	0x64               goto 22
	0x65               goto 27
	0x66               goto 28
	0x67 - 0x68 (2)    goto 22
	0x69               goto 29
	0x6a - 0x6e (5)    goto 22
	0x6f               goto 30
	0x70 - 0x71 (2)    goto 22
	0x72               goto 31
	0x73 - 0x75 (3)    goto 22
	0x76               goto 32
	0x77               goto 33
	0x78 - 0x7a (3)    goto 22
	0x7b               goto 34
	0x7c               goto 35
	0x7d               goto 36
	0x7e               goto 37
	0x7f - 0xff (129)  goto 3


state 3
	match 51


state 4
	0x09               goto 4
	0x20               goto 4

	match 48


state 5
	match 47


state 6
	0x3d               goto 38

	match 27


state 7
	match 23


state 8
	0x26               goto 39

	match 31


state 9
	0x00 - 0x09 (10)   goto 40
	0x0b - 0xff (245)  goto 40

	match 51


state 10
	match 37


state 11
	match 38


state 12
	match 21


state 13
	0x2b               goto 41

	match 19


state 14
	match 36


state 15
	0x2d               goto 42

	match 20


state 16
	0x2a               goto 43
	0x2f               goto 44

	match 22


state 17
	0x2e               goto 45
	0x30 - 0x39 (10)   goto 17

	match 44


state 18
	match 35


state 19
	0x3c               goto 46
	0x3d               goto 47

	match 14


state 20
	0x3d               goto 48

	match 34


state 21
	0x3d               goto 49
	0x3e               goto 50

	match 16


state 22
	0x30 - 0x39 (10)   goto 22
	0x41 - 0x5a (26)   goto 22
	0x5f               goto 22
	0x61 - 0x7a (26)   goto 22

	match 43


state 23
	match 39


state 24
	match 40


state 25
	match 33


state 26
	0x30 - 0x39 (10)   goto 22
	0x41 - 0x5a (26)   goto 22
	0x5f               goto 22
	0x61 - 0x67 (7)    goto 22
	0x68               goto 51
	0x69 - 0x7a (18)   goto 22

	match 43


state 27
	0x30 - 0x39 (10)   goto 22
	0x41 - 0x5a (26)   goto 22
	0x5f               goto 22
	0x61 - 0x6b (11)   goto 22
	0x6c               goto 52
	0x6d - 0x7a (14)   goto 22

	match 43


state 28
	0x30 - 0x39 (10)   goto 22
	0x41 - 0x5a (26)   goto 22
	0x5f               goto 22
	0x61 - 0x6b (11)   goto 22
	0x6c               goto 53
	0x6d - 0x6e (2)    goto 22
	0x6f               goto 54
	0x70 - 0x7a (11)   goto 22

	match 43


state 29
	0x30 - 0x39 (10)   goto 22
	0x41 - 0x5a (26)   goto 22
	0x5f               goto 22
	0x61 - 0x65 (5)    goto 22
	0x66               goto 55
	0x67 - 0x6d (7)    goto 22
	0x6e               goto 56
	0x6f - 0x7a (12)   goto 22

	match 43


state 30
	0x30 - 0x39 (10)   goto 22
	0x41 - 0x5a (26)   goto 22
	0x5f               goto 22
	0x61 - 0x74 (20)   goto 22
	0x75               goto 57
	0x76 - 0x7a (5)    goto 22

	match 43


state 31
	0x30 - 0x39 (10)   goto 22
	0x41 - 0x5a (26)   goto 22
	0x5f               goto 22
	0x61 - 0x64 (4)    goto 22
	0x65               goto 58
	0x66 - 0x7a (21)   goto 22

	match 43


state 32
	0x30 - 0x39 (10)   goto 22
	0x41 - 0x5a (26)   goto 22
	0x5f               goto 22
	0x61 - 0x6e (14)   goto 22
	0x6f               goto 59
	0x70 - 0x7a (11)   goto 22

	match 43


state 33
	0x30 - 0x39 (10)   goto 22
	0x41 - 0x5a (26)   goto 22
	0x5f               goto 22
	0x61 - 0x67 (7)    goto 22
	0x68               goto 60

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -