benruijl/spl — comment on commit a55420436c069b91e4d1e1a1615d6223772fe3cc
File:  line 0
By sebitzutzu:

Yes I know I think so too that's why the teacher writes all these kinds of funny stuff like Prog = Decl+ or Stmt* because it only matters for the parsing but not for the internal representation (like some kind of generic domain in Advanced Programming). In order to define FunDecl we need to define Stmt in the first place. In Advanced Programming we did some kind of semantics for if statements,while statements... (I've attached the file). By the way that example code was copy-pasted from here I think this might be useful later on (so another good reason for using haskell instead of clean is available documentation on the Internet): http://alephnullplex.appspot.com/blog/view/2010/01/12/lbach-1-introduction

________________________________
From: Ben Ruijl
To: sebitzutzu
Sent: Wednesday, February 1, 2012 10:42 AM
Subject: Re: [spl] Added a rule for FArgs. (a554204)

I think we should be very careful to separate the grammar of the parser and our internal data structure. What this file is, is basically our internal representation.

---
Reply to this email directly or view it on GitHub:
https://github.com/benruijl/spl/commit/a55420436c069b91e4d1e1a1615d6223772fe3cc#commitcomment-921930