Learn C Programming

Lesson 5 of 5 · Three Projects

Module 17 · Three Projects

Project Three: A Tiny Expression Interpreter

ProReading

A grammar is a set of rules that says which lines are expressions and how they group. Each rule has a name, then =, then what it is made of. { } means "any number of times, zero included", [ ] means "optional", | means "or", and quotes hold exact characters. Copy this one to the top of your file as a comment before you write any code:

Pro lesson

This one goes deeper

It is included with this track and with Learn Pro. Every question on the Skill Test can be answered from the free lessons, so this is depth and never a gate on the certificate.

What is inside Project Three: A Tiny Expression Interpreter

  1. Write first: the grammar
  2. The output
  3. Write first: the test table
  4. Requirements
  5. Sample input
  6. Sample output
  7. On your own machine
  8. Marking rubric
  9. Submission checklist