This post originated from an RSS feed registered with Agile Buzz
by Patrick Lioi.
Original Post: Grammar 3: Function Definitons
Feed Title: patrick.lioi.net
Feed URL: http://patrick.lioi.net/feed/
Feed Description: This feed mainly follows my attempt to grow an interpreter/compiler while learning TDD.
This is part of a series of articles that started with Test-Driving a Compiler.
Grammar 3 introduces functions, identifiers, and programs composed of multiple function definitions. Here’s the grammar, with changes from Grammar 2 in bold:
Program := Function*
Function := identifier '(' ParameterList ')' Expression
ParameterList := &')'
[...]