.. _Grammars5:
.. raw:: html
.. |--| unicode:: U+2013 .. en dash
.. |---| unicode:: U+2014 .. em dash, trimming surrounding whitespace
:trim:
.. This file is part of the OpenDSA eTextbook project. See
.. http://algoviz.org/OpenDSA for more details.
.. Copyright (c) 2012-13 by the OpenDSA Project Contributors, and
.. distributed under an MIT open source license.
.. avmetadata::
:author: David Furcy and Tom Naps
=============================
Grammars - Part 5 (W 2/10/16)
=============================
RP 5 part 1
-----------
Topics of the day:
1. How to add annotations to a Jison grammar to produce an
interpreter, rather than just a parser.
2. Introduction to functional programming (beginning of the next chapter).
The review problem set for today contains five review problems. The
first one (see below) is about grammars. The four remaining problems are in
the chapter on functional programming.
This first problem will help you understand how annotated Jison grammars
can be used to generate interpreters.
.. avembed:: Exercises/PL/RP5part1.html ka
:module: Grammars5
:long_name: RP set #5, question #1
:points: 1.0
:required: True
:threshold: 1.0
:exer_opts: JXOP-debug=true&JOP-lang=en