Lecture 4

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: e input pointer 9 Accept LEQ 10 Once again, no need for transi:ons out of final states. Accept LESS, don’t advance input pointer UW CSE 401 (Michael Ringenburg) 26 13 1/14/13 Scanner DFA Example (3) CSE341: Programming CSE341: Programming Languages Languages Lecture 1 Lecture 1 [0-9] Course [ ourse Mechanics Mechanics C0-9] 11 ML Variable Bindings ML Variable Bindings [other ] Grossman ccept INT, don’t advance Dan A 12 Dan Grossman Fall 2011 Fall 2011 Only integers in this language. Winter 2013 27 UW CSE 401 (Michael Ringenburg) Scanner DFA Example (4) CSE341: Programming CSE341: Programming Languages Languages Lecture 1 Lecture 1 [a-zA-Z0-9_] Course [a-zA-Z] Course Mechanics Mechanics 13 ML Variable Bindings ML Variable Bindings [other ] Grossman ccept ID or keyword, Dan A 14 Dan Grossman Fall 2011 Fall 2011 don’t advance •  Strategies for handling iden:fiers vs keywords –  Hand- wriwen scanner: look up iden:fie...
View Full Document

This document was uploaded on 04/04/2014.

Ask a homework question - tutors are online