becomes scolon ifstmt idx uw cse 401 michael

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: phases of front/ by Grossman Dan Grossman back ends – higher level at first, all 2011level in later phases F lower Fall 2011 Source Winter 2013 Java Front End IR Back End UW CSE 401 (Michael Ringenburg) MC Target A-21 Front End SE341: Programming R CSE341:source CScanner tokens Parser Programming Languages ILanguages Lecture 1 Lecture 1 •  Usually split ourse Mechanics Mechanics C parts Cinto two main ourse ML Variable Bindings –  Scanner: Responsible for conver7ng character stream to token ML Variable Bindings stream: opera7on, variable, constant, etc. •  Also: strips oDanhite space, comments ut w Grossman Dan Grossman Fall 2011 –  Parser: Reads token s2011 generates IR Fall tream; •  (Seman7cs analysis can happen here, or immediately averwards) •  Both of these can be generated automa7cally –  Use a formal grammar to specify source language (e.g., Java) –  Tools read the grammar and generate scanner & parser (e.g., lex and yacc for...
View Full Document

This document was uploaded on 04/04/2014.

Ask a homework question - tutors are online