Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
lec3

lec3

Ratings: (0)|Views: 0|Likes:
Published by IT Special Force

More info:

Published by: IT Special Force on Feb 09, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/27/2014

pdf

text

original

 
Frontend 
source cod
scannerparse
i
errors 
tokens 
Responsibilities: 
 
recognizelegalprocedur
 
reporterror
 
produc
i
 
preliminarystoragemap 
 
shapethecodeforthebackend 
Muchoffrontendconstructioncanbeautomate
CPSC43
Lecture3,Page
 
Scanne
source code 
scannerparse
i
errors 
tokens 
Ascannermustrecognizevariouspartsofthe language'ssyntaxInputisseparatedint
token
basedonlexical analysis. 
x=x+y
become
id
id
id
Legaltokensareusuallyspeciedbyregular expressions(REs)
CPSC43
Lecture3,Page
 
Regularexpression
RegularexpressionsrepresentlanguagesLanguagesaresetsofstringsOperationsinclud
Kleeneclosur
concatenatio
an
union 
RegularexpressionLanguag
",
)
a
 
"",
",
a
",..
",
a
",..
Weassum
closure 
concatenatio
union 
asthe orderofprecedence
a
c
 
=
a
 
)
a
",
",
c
",
cd
",..
b
 
",
ab
",
abcbc 
",..
CPSC43
Lecture3,Page

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->