Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
courses:cs331-201701:parser [2018/09/20 23:45]
sellis [Resources]
courses:cs331-201701:parser [2019/02/07 14:19]
sellis [Design]
Line 33: Line 33:
 To initialise the parser, the stack must contain the distinguished symbol of the grammar, ''<​Goal>'',​ with the ''​ENDOFFFILE''​ terminal symbol underneath it. Once this is done, the parser is ready to go. To initialise the parser, the stack must contain the distinguished symbol of the grammar, ''<​Goal>'',​ with the ''​ENDOFFFILE''​ terminal symbol underneath it. Once this is done, the parser is ready to go.
  
 +=== Suggestion ===
 +
 +It is **strongly recommended** you do not hard-code the grammar and parse table, but instead write functions to load them from disc. This is, however, only a recommendation:​ your program is your own to design. :-)
 ==== Resources ==== ==== Resources ====