Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 427 Bytes

Grammars.org

File metadata and controls

23 lines (21 loc) · 427 Bytes

Grammars

Smart Paradigms

  • Case statements and Pattern matching
    • In Python if a == ‘1’: print(‘1a’) elif a == ‘2’: print(‘2a’) else: print(‘3a’)
    • In GF Example: #+INCLUDE “src/Case.gf” src gf
  • Example: #+INCLUDE “src/SmartParadigm.gf” src gf

Abstract Syntax

Example: #+INCLUDE “src/Micro.gf” src gf

Concrete Syntax

Example: #+INCLUDE “src/MicroEng.gf” src gf