mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-14 15:29:31 -06:00
documentation in gfm-format examples (dir renamed from multi)
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
-- baseline
|
||||
-- Full .gfm format: multi-module files (see Words.gfm for a baseline format)
|
||||
-- The compiler recognizes the suffix .gfm and a file for each module.
|
||||
-- Food.gf, FoodEng.gf, FoodIta.gf
|
||||
-- The first non-comment line must give a list of lang names for the top modules.
|
||||
-- This modules are the ones imported in 'import Food.gfm'.
|
||||
-- Their prefix comes from this file.
|
||||
-- This file must be UTF-8 encoded.
|
||||
|
||||
|
||||
> langs Eng Ita
|
||||
|
||||
22
examples/gfm-format/Words.gfm
Normal file
22
examples/gfm-format/Words.gfm
Normal file
@@ -0,0 +1,22 @@
|
||||
-- Baseline of .gfm format: multilingual word lists (see Food.gfm for multi-module gf)
|
||||
-- The compiler recognizes the suffix .gfm and creates four files:
|
||||
-- Words.gf, WordsEng.gf, WordsFin.gf, WordsSwe.gf
|
||||
-- The first non-comment line must give a list of lang names.
|
||||
-- The prefix comes from this file, as well as the abstract name.
|
||||
-- Languages are separated by ';', variants within a language by ','.
|
||||
-- Multi-word expressions are allowed.
|
||||
-- The startcat is S.
|
||||
-- The abstract name is multi_word_S for the first multi word (or word) on each line.
|
||||
-- This file must be UTF-8 encoded.
|
||||
|
||||
> langs Eng Swe Fin
|
||||
|
||||
house ; hus ; talo
|
||||
car, automobile ; bil ; auto
|
||||
man ; man ; mies
|
||||
girl ; flicka, tjej ; tyttö
|
||||
technical university ; teknisk högskola ; teknillinen korkeakoulu
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
-- baseline
|
||||
|
||||
> langs Eng Swe Fin
|
||||
house ; hus ; talo
|
||||
car, automobile ; bil ; auto
|
||||
man ; man ; mies
|
||||
girl ; flicka, tjej ; tyttö
|
||||
technical university ; teknisk högskola ; teknillinen korkeakoulu
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user