Grammar Writing 11-721 Grammars and Lexicons November 7, 2007

Grammar Writing
11-721
Grammars and Lexicons
November 7, 2007
Teruko Mitamura
teruko@cs.cmu.edu
www.cs.cmu.edu/~teruko
Carnegie Mellon
School of Computer Science
LTI Grammars and Lexicons
Copyright © 2007, Carnegie Mellon. All Rights Reserved.
1
Schedule of Grammar Writing
Nov 7 Wednesday
• How to run the parser
– Grammar guide
– Simple-dog.gra
– Create Result file
• How to debug a grammar
–
–
–
–
–
Dog.gra (This grammar has problems.)
Debugger
Result file
Dog-correct.gra (Fix the problems and create a new grammar.)
Create Result file
• Grammar writing project
• Q/A for the 1st assignment: step 1-2 and test suite for one type
• Grammar exercise (1)
Carnegie Mellon
School of Computer Science
LTI Grammars and Lexicons
Copyright © 2007, Carnegie Mellon. All Rights Reserved.
2