Next: , Previous: Overview, Up: Top


2 Grammar File

A semantic grammar file has four main sections, and looks like this:

       %{
         PROLOGUE
       %}
     
       DECLARATIONS
     
       %%
       GRAMMAR RULES
       %%
     
       EPILOGUE

Comments are like Emacs Lisp ones but start with two consecutive semicolons (;;) instead of a single one. The single semicolon (;) is the end of rule delimiter.