Use of the CoCoR Compiler Compiler.
Both projects show how to compile a file (random extension) using the right grammar (grammar.atg), and compute it to end up with a compiler that delivers JSON files.
- The first project has a grammar that matches the following pattern:
(London (Brussels) (Paris (Madrid) (Rome () (Vienna) ) ) )
- The second project has a grammar that matches the following pattern:
Boulder, John M. home 020 7815 1234 office 020 3465 234 Brown, Cynthia 1234567 Douglas, Ann Louise office +44 (0)20 234 567 mobile +43 (0)664 7865 234