[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
[Search]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Project]
[Readings]
[Reference]
Misc:
[2001S]
[2002F]
[SamR]
Back to Translation. On to Regular Expressions, Continued.
Held: Monday, 2 February 2004
Summary: Today we begin our consideration of lexical analysis through a visit to the regular expressions that are typically used to denote lexemes, the basic building blocks of languages.
Related Pages:
Notes:
Overview:
meaningrather than
semanticsbecause
semanticsis used for things like the valid use of variables.
set of stringsmodel in mind.
realstep in compilation. During lexical analysis, one identifies the simple tokens (also called lexemes) that make up a program.
unnecessarycomponents, such as whitespace (spaces, tabs, newlines) and comments.
token readToken skip over whitespace and comments if the next character is a digit, read and return a number if the next character is a character, read and return a word if the next character is an operator, return it otherwise, crash and burn
peekToken
operation.
Back to Translation. On to Regular Expressions, Continued.
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
[Search]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Project]
[Readings]
[Reference]
Misc:
[2001S]
[2002F]
[SamR]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Wed May 5 11:46:57 2004.
The source to the document was last modified on Tue Jan 20 23:06:45 2004.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS362/2004S/Outlines/outline.06.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby