Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
UP Lecture 05
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Javier Gonzalez-Sanchez
PRO
December 08, 2023
Programming
150
0
Share
UP Lecture 05
Compilers
Test Cases for Lexical Analysis
(202402)
Javier Gonzalez-Sanchez
PRO
December 08, 2023
More Decks by Javier Gonzalez-Sanchez
See All by Javier Gonzalez-Sanchez
CSC307 Lecture 17
javiergs
PRO
0
240
CSC305 Lecture 18
javiergs
PRO
0
340
final project
javiergs
PRO
0
57
CSC305 Lecture 18
javiergs
PRO
0
39
CSC307_L17_mqtt.pdf
javiergs
PRO
0
46
UP Lecture 28
javiergs
PRO
0
40
CSC307_L99_TDD.pdf
javiergs
PRO
0
44
CSC307_L99_TDD.pdf
javiergs
PRO
0
52
UP Lecture 27
javiergs
PRO
0
41
Other Decks in Programming
See All in Programming
Transactional Change Stream Processing With Debezium and Apache Flink
gunnarmorling
1
130
Zod v4 Codec でスキーマに型変換を埋め込む REST API 設計 #TSKaigi2026
ryutaro_yako
0
150
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
4
710
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
240
Agentic UI beyond Chats Architecture Patterns & Open Standards @ngMunich 05/2026
manfredsteyer
PRO
0
150
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
5
700
Talking to terminals (and how they talk back) (KotlinConf 2026)
jakewharton
PRO
1
130
Hive Metastoreを通して学ぶIceberg REST Catalog ― 仕様から実装まで
okumin
0
280
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
160
AIエージェントと協働するCLI開発 — BunとOpenClawで学んだこと
yoshikouki
1
210
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
210
Claspは野良GASの夢をみるか
takter00
0
130
Featured
See All Featured
Making Projects Easy
brettharned
120
6.6k
Darren the Foodie - Storyboard
khoart
PRO
3
3.4k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
420
The Mindset for Success: Future Career Progression
greggifford
PRO
0
340
Building the Perfect Custom Keyboard
takai
2
770
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Un-Boring Meetings
codingconduct
0
300
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
210
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Transcript
jgs Compilers Lecture 05: Test Cases for Lexical Analysis Dr.
Javier Gonzalez-Sanchez
[email protected]
jgs Announcements
Dr. Javier Gonzalez-Sanchez | Compilers | 3 jgs Announcements Lunes
y Miercoles 8:30 a 10 pm Primer Examen Parcial (25 de Febrero) Marzo 10 regresamos: Martes y Jueves 6:00 a 8:30 pm
Dr. Javier Gonzalez-Sanchez | Compilers | 4 jgs Key Ideas
Lexical Alphabet Symbol String Word Token Rules Regular Expression Deterministic Finite Automata
jgs Test Cases
Dr. Javier Gonzalez-Sanchez | Compilers | 6 jgs Review |
Lexical Analysis Are the following STRINGS correct or not? Why? ▪ 000000005 ▪ 000000009 ▪ 000000009.1 ▪ 000000005 ▪ 000000005.1 ▪ 0x0000002 ▪ 0123456789
Dr. Javier Gonzalez-Sanchez | Compilers | 7 jgs Review |
Lexical Analysis Are the following STRINGS correct or not? Why? ▪ 1.2e---3++ ▪ $50 ▪ float ________________ = 5; ▪ double x = 000000.1; ▪ '''a' ▪ '\''b' ▪ '\'b'
Dr. Javier Gonzalez-Sanchez | Compilers | 8 jgs Review |
Lexical Analysis Are the following STRINGS correct or not? Why? ▪ " \\\\\\\\\\a" ▪ "Hello""world" ▪ abc"Hello" ▪ ''' ▪ '\x' ▪ '\a' ▪ '\w' ▪ "\\\” ▪ '\\\'
Dr. Javier Gonzalez-Sanchez | Compilers | 9 jgs Questions
jgs Compilers Javier Gonzalez-Sanchez, Ph.D.
[email protected]
Spring 2024 Copyright. These
slides can only be used as study material for the Compilers course at Universidad Panamericana. They cannot be distributed or used for another purpose.