Grammars for Pascal and Borland Delphi
(When you misspell 'grammar' as 'gramar' or 'grammer' you will surely not find valuable material!)

There are some grammars around.

  • You can look up the various versions of TPYacc-distributions, they should contain a simple sample grammar.
  • Standard Pascal, Extended Pascal and Object-Oriented Pascal Grammars should also be available at Pascal Central.
  • File: pascal.grm (taken from file isopas12.zip), Grammar of PASCAL Language. Programmer: Iew Ayaragarnchanakul. Generator: LLGEN version 2.0.
  • pascal.zip (http://www.ucse.edu.ar/fma/compiladores/grams/pascal.zip): Standard Pascal grammar. Author: Lori Simcox, Homework and various other Standard Pascal grammars.
  • ftp://iecc.com/pub/files/pascal-grammar shell archive file containing ISO standard Pascal grammar with lexer.
  • GRM_Pascal.ZIP Turbo Pascal 5.5 Grammar (with lexical grammar) modified for use by LRGen 5.0 by Paul Mann.
  • Borland Delphi grammars I know of are:

    Other grammars were mentioned in newsgroups, but I couldn't find them.

    NewsGroups / Listserver for that topic:


    My modifications to TPYacc to generate my Delphi4.0 grammar were the following (the grammar is really large):


    Back to my homepage.

    Updated 15.January.2004 1