COMPSCI 164 Study Guide - Midterm Guide: Lexical Analysis, Regular Expression, Context-Free Grammar

31 views5 pages
8 Jan 2019
School
Professor

Document Summary

There are 7 questions in the exam on 5 pages. You have 80 minutes to complete this test. The exam is closed book but you may refer to your one page (2-sides) handwritten 8. 5 by 11 inch paper. Please write your login name on every page. If you may use the backs of the exam pages for answers, clearly direct the grader to the location of answers. Your login name printed in capital letters cs164- Underline the name of your teaching assistant: shoaib or ryan. I certify that my answers to this exam are all my own work. [25 points] here is a grammar for a simple language that includes array assignments like. We use the same notation for grammars as in lecture and assignments 3 and 4. (defparameter. 3: write out a simple grammar for the same language that is suitable for ll(1) parsing.