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

📄 scan.v

📁 大3编译原理课程设计 绝对符合老师要求 报告代码一应俱全 很详细 很靠谱
💻 V
📖 第 1 页 / 共 2 页
字号:
#############################################################################
#                     U N R E G I S T E R E D   C O P Y
# 
# You are on day 12 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/20/08
# Time: 00:16:10
# 
# ALex Version: 2.07
#############################################################################


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

    1  "int"

    2  "float"

    3  "char"

    4  "void"

    5  "if"

    6  "else"

    7  "while"

    8  "continue"

    9  "break"

   10  "return"

   11  "+"

   12  "-"

   13  "*"

   14  "/"

   15  "<"

   16  "<="

   17  ">"

   18  ">="

   19  "=="

   20  "!="

   21  "&amt;&amt;"

   22  "||"

   23  "!"

   24  "="

   25  ";"

   26  ","

   27  "("

   28  ")"

   29  "["

   30  "]"

   31  "{"

   32  "}"

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

   34  [0-9]+

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

   36  '.'

   37  \n

   38  [ \t]+

   39  "//"

   40  "/*"

   41  .


#############################################################################
# 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 - 0x25 (4)    goto 3
	0x26               goto 7
	0x27               goto 8
	0x28               goto 9
	0x29               goto 10
	0x2a               goto 11
	0x2b               goto 12
	0x2c               goto 13
	0x2d               goto 14
	0x2e               goto 3
	0x2f               goto 15
	0x30 - 0x39 (10)   goto 16
	0x3a               goto 3
	0x3b               goto 17
	0x3c               goto 18
	0x3d               goto 19
	0x3e               goto 20
	0x3f - 0x40 (2)    goto 3
	0x41 - 0x5a (26)   goto 21
	0x5b               goto 22
	0x5c               goto 3
	0x5d               goto 23
	0x5e               goto 3
	0x5f               goto 21
	0x60               goto 3
	0x61               goto 21
	0x62               goto 24
	0x63               goto 25
	0x64               goto 21
	0x65               goto 26
	0x66               goto 27
	0x67 - 0x68 (2)    goto 21
	0x69               goto 28
	0x6a - 0x71 (8)    goto 21
	0x72               goto 29
	0x73 - 0x75 (3)    goto 21
	0x76               goto 30
	0x77               goto 31
	0x78 - 0x7a (3)    goto 21
	0x7b               goto 32
	0x7c               goto 33
	0x7d               goto 34
	0x7e - 0xff (130)  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 - 0x25 (4)    goto 3
	0x26               goto 7
	0x27               goto 8
	0x28               goto 9
	0x29               goto 10
	0x2a               goto 11
	0x2b               goto 12
	0x2c               goto 13
	0x2d               goto 14
	0x2e               goto 3
	0x2f               goto 15
	0x30 - 0x39 (10)   goto 16
	0x3a               goto 3
	0x3b               goto 17
	0x3c               goto 18
	0x3d               goto 19
	0x3e               goto 20
	0x3f - 0x40 (2)    goto 3
	0x41 - 0x5a (26)   goto 21
	0x5b               goto 22
	0x5c               goto 3
	0x5d               goto 23
	0x5e               goto 3
	0x5f               goto 21
	0x60               goto 3
	0x61               goto 21
	0x62               goto 24
	0x63               goto 25
	0x64               goto 21
	0x65               goto 26
	0x66               goto 27
	0x67 - 0x68 (2)    goto 21
	0x69               goto 28
	0x6a - 0x71 (8)    goto 21
	0x72               goto 29
	0x73 - 0x75 (3)    goto 21
	0x76               goto 30
	0x77               goto 31
	0x78 - 0x7a (3)    goto 21
	0x7b               goto 32
	0x7c               goto 33
	0x7d               goto 34
	0x7e - 0xff (130)  goto 3


state 3
	match 41


state 4
	0x09               goto 4
	0x20               goto 4

	match 38


state 5
	match 37


state 6
	0x3d               goto 35

	match 23


state 7
	0x61               goto 36

	match 41


state 8
	0x00 - 0x09 (10)   goto 37
	0x0b - 0xff (245)  goto 37

	match 41


state 9
	match 27


state 10
	match 28


state 11
	match 13


state 12
	match 11


state 13
	match 26


state 14
	match 12


state 15
	0x2a               goto 38
	0x2f               goto 39

	match 14


state 16
	0x2e               goto 40
	0x30 - 0x39 (10)   goto 16

	match 34


state 17
	match 25


state 18
	0x3d               goto 41

	match 15


state 19
	0x3d               goto 42

	match 24


state 20
	0x3d               goto 43

	match 17


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

	match 33


state 22
	match 29


state 23
	match 30


state 24
	0x30 - 0x39 (10)   goto 21
	0x41 - 0x5a (26)   goto 21
	0x5f               goto 21
	0x61 - 0x71 (17)   goto 21
	0x72               goto 44
	0x73 - 0x7a (8)    goto 21

	match 33


state 25
	0x30 - 0x39 (10)   goto 21
	0x41 - 0x5a (26)   goto 21
	0x5f               goto 21
	0x61 - 0x67 (7)    goto 21
	0x68               goto 45
	0x69 - 0x6e (6)    goto 21
	0x6f               goto 46
	0x70 - 0x7a (11)   goto 21

	match 33


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

	match 33


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

	match 33


state 28
	0x30 - 0x39 (10)   goto 21
	0x41 - 0x5a (26)   goto 21
	0x5f               goto 21
	0x61 - 0x65 (5)    goto 21
	0x66               goto 49
	0x67 - 0x6d (7)    goto 21
	0x6e               goto 50
	0x6f - 0x7a (12)   goto 21

	match 33


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

	match 33


state 30
	0x30 - 0x39 (10)   goto 21
	0x41 - 0x5a (26)   goto 21
	0x5f               goto 21
	0x61 - 0x6e (14)   goto 21
	0x6f               goto 52
	0x70 - 0x7a (11)   goto 21

	match 33


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

	match 33


state 32
	match 31


state 33
	0x7c               goto 54

	match 41


state 34
	match 32


state 35
	match 20


state 36
	0x6d               goto 55


state 37
	0x27               goto 56


⌨️ 快捷键说明

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