food_fish_parser 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/food_fish_parser/flat/fish_name_latin.rb +3 -3
- data/lib/food_fish_parser/flat/fish_name_nl.rb +1 -1
- data/lib/food_fish_parser/strict/grammar/fish_allergen.treetop +15 -0
- data/lib/food_fish_parser/strict/grammar/fish_name.treetop +2 -1
- data/lib/food_fish_parser/strict/grammar/fish_name_latin.treetop +6 -3
- data/lib/food_fish_parser/strict/grammar/fish_name_nl.treetop +4 -1
- data/lib/food_fish_parser/strict/grammar.rb +1 -0
- data/lib/food_fish_parser/version.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ec812d752c0ebb045d364f95e1343c902d84e430e14c2c817b04213b91f7603
|
4
|
+
data.tar.gz: 7d18f20a23b718d4d27e8bf2f67c879fbaccd6b81af5cf2657995e08becb665a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb1d4177bd203662006584e871bb5fe1262ced8885c4705039e25e50700116716357cfb0db9e0c3819ed98769f5881109cc8bec622f714d339a7028a0039fcf
|
7
|
+
data.tar.gz: 64e44abbf0aa1a87eec8c6d4671b5f2f2d3ec5d247b2cd5fc9996488f4f1e9ef0985be7d24bda0d6fe7b3f6655cb7460e540b04e307dad6f70e87de9b3a0a2fc
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# autogenerated by species-treetop-gen-latin.rb on 2020-03-
|
1
|
+
# autogenerated by species-treetop-gen-latin.rb on 2020-03-25
|
2
2
|
module FoodFishParser
|
3
3
|
module Flat
|
4
4
|
module FishNameLatin
|
5
|
-
REGEX_FIRST = /zygochlamys|zeus|xiphopenaeus|xiphias|trichiurus|trachurus|todarodes|thunnus|theragra|stolephorus|sprattus|sparus|solea|sepiella|sepia|sebastes|scomber|sardinella|sardina|salmo|
|
6
|
-
REGEX_SECND = /yessoensis|vulgaris|virens|vannamel|vannamei|undulata|umbilicalis|thynnus|tenera|stylifera|sprattus|spp\.|spp|sombrus|solea|solar|scombrus|santolla|salina|salar|ringens|punctatus|productus|pluvialis|platessa|piscatorius|pilchardus|pelatis|pelanis|pelamis|pelagicus|patagonica|pangasius|pacificus|orientalis|officinalis|obesus|novaezelandiae|novaezealandiae|norvegicus|niloticus|nerka|mykiss|mykis|myki\?s|murphyi|muelleri|morhue|morhua|monodon|monoceros|microptera|merluccius|merlangus|merguiensis|maximus|maxima|marinus|magellanicus|macrocephalus|maccoyii|limanda|lepturus|
|
5
|
+
REGEX_FIRST = /zygochlamys|zeus|xiphopenaeus|xiphias|trichiurus|trachurus|todarodes|thunnus|theragra|stolephorus|sprattus|sparus|solea|sepiella|sepia|sebastes|scomber|sardinella|sardina|salmo|reinhardtius|psetta|procambarus|portunus|porphyra|pollachius|pleuronectes|pleoticus|placopecten|perna|peraeus|penaeus|penaeidae|pelvetia|pecten|patinopecten|parapenaeopsis|paralomis|paphia|pangasius|pandalus|pagellus|ovalipes|ostrea|oreochromis|orcorhynchus|oncorhynchus|octopus\ vulgaris|nephrops|nemipterus|mytilus|mulinia|micromesistius|metapenaeus|merluccius|merlangius|melanogrammus|macruronus|lophius|loligo|litopenaeus|lithodes|limanda|lethrinus|lepidotrigla|lepidopsetta|lates|katwonus|katwomus|katsuwonus|katsuwomus|illex|homarus|himanthalia|haematococcus|gadus|euthynnus\ \(katsuwonus\)\ pelamis|euthynnus\ \(katsuwonus\)|euthynnus|ensis|engraulis|dunaliella|dosidicus|dicentrarchus|crassostrea|crangon|conger|clupea|clarias|cheilopogon|cerastoderma|cerastoderm|anguilla|anadara|alle\ alle|acipenser/i
|
6
|
+
REGEX_SECND = /yessoensis|vulgaris|virens|vannemei|vannamel|vannamei|undulata|umbilicalis|thynnus|tenera|stylifera|sprattus|spp\.|spp|sombrus|solea|solar|scombrus|santolla|salina|salar|ringens|punctatus|productus|pluvialis|platessa|piscatorius|pilchardus|piclhardus|pelatis|pelanis|pelamis|pelagicus|patagonica|pangasius|pacificus|orientalis|officinalis|obesus|novaezelandiae|novaezealandiae|norvegicus|niloticus|nerka|mykiss|mykis|myki\?s|murphyi|muelleri|morhue|morhua|monodon|monoceros|microptera|merluccius|merlangus|merguiensis|maximus|maxima|marinus|magellanicus|macrocephalus|maccoyii|limanda|lepturus|labrax|kroyeri|kisutch|keta|jordani|japonicus|japonica|hyptophthalmus|hypophtalmus|hippoglossus|hippoglossoides|hexodon|harengus|gueldenstaedtii|granulosa|gorbusche|gorbuscha|gladius|gigas|gibbosa|gariepinus|galloprovincialis|faber|encrasicolus|elongata|edulis|edule|directus|crangon|conger|clarkii|chilensis|chalcogramma|capensis|cannamel|cannamei|canaliculus|canaliculata|borealis|bogaraveo|bilineata|australis|aurata|atrisignis|argentinus|antiquata|anquilla|anguilla|anchoita|americanus|albacares|alalunga|aeglefinus/i
|
7
7
|
|
8
8
|
REGEX = /
|
9
9
|
\b
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module FoodFishParser::Strict::Grammar
|
2
|
+
grammar FishAllergen
|
3
|
+
include Common
|
4
|
+
|
5
|
+
rule fish_allergen
|
6
|
+
'(' ws* fish_allergen_text ws* ')' /
|
7
|
+
comma ws* fish_allergen_text /
|
8
|
+
fish_allergen_text ( ws* comma )?
|
9
|
+
end
|
10
|
+
|
11
|
+
rule fish_allergen_text
|
12
|
+
'vis'i
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,11 +1,12 @@
|
|
1
1
|
module FoodFishParser::Strict::Grammar
|
2
2
|
grammar FishName
|
3
3
|
include Common
|
4
|
+
include FishAllergen
|
4
5
|
include FishNameLatin
|
5
6
|
include FishNameNL
|
6
7
|
|
7
8
|
rule fish_name_both
|
8
|
-
( fish_name_nl ws* '(' ws* fish_name_latin ( ws* ')' / comma )? )
|
9
|
+
( fish_name_nl ws* '(' ( ws* fish_allergen )? ws* fish_name_latin ( ws* ')' / comma )? )
|
9
10
|
end
|
10
11
|
|
11
12
|
rule fish_name_both_list
|
@@ -1,19 +1,22 @@
|
|
1
|
-
# autogenerated by species-treetop-gen-latin.rb on 2020-03-
|
1
|
+
# autogenerated by species-treetop-gen-latin.rb on 2020-03-25
|
2
2
|
module FoodFishParser::Strict::Grammar
|
3
3
|
grammar FishNameLatin
|
4
4
|
include Common
|
5
|
+
include FishAllergen
|
5
6
|
|
6
7
|
rule fish_name_latin
|
8
|
+
'(' ws* fish_name_latin ws* ')' /
|
7
9
|
fish_name_latin_first ( ws+ fish_name_latin_second )?
|
10
|
+
( ws* fish_allergen )?
|
8
11
|
<FishNameLatinNode>
|
9
12
|
end
|
10
13
|
|
11
14
|
rule fish_name_latin_first
|
12
|
-
'zygochlamys'i / 'zeus'i / 'xiphopenaeus'i / 'xiphias'i / 'trichiurus'i / 'trachurus'i / 'todarodes'i / 'thunnus'i / 'theragra'i / 'stolephorus'i / 'sprattus'i / 'sparus'i / 'solea'i / 'sepiella'i / 'sepia'i / 'sebastes'i / 'scomber'i / 'sardinella'i / 'sardina'i / 'salmo'i / '
|
15
|
+
'zygochlamys'i / 'zeus'i / 'xiphopenaeus'i / 'xiphias'i / 'trichiurus'i / 'trachurus'i / 'todarodes'i / 'thunnus'i / 'theragra'i / 'stolephorus'i / 'sprattus'i / 'sparus'i / 'solea'i / 'sepiella'i / 'sepia'i / 'sebastes'i / 'scomber'i / 'sardinella'i / 'sardina'i / 'salmo'i / 'reinhardtius'i / 'psetta'i / 'procambarus'i / 'portunus'i / 'porphyra'i / 'pollachius'i / 'pleuronectes'i / 'pleoticus'i / 'placopecten'i / 'perna'i / 'peraeus'i / 'penaeus'i / 'penaeidae'i / 'pelvetia'i / 'pecten'i / 'patinopecten'i / 'parapenaeopsis'i / 'paralomis'i / 'paphia'i / 'pangasius'i / 'pandalus'i / 'pagellus'i / 'ovalipes'i / 'ostrea'i / 'oreochromis'i / 'orcorhynchus'i / 'oncorhynchus'i / 'octopus vulgaris'i / 'nephrops'i / 'nemipterus'i / 'mytilus'i / 'mulinia'i / 'micromesistius'i / 'metapenaeus'i / 'merluccius'i / 'merlangius'i / 'melanogrammus'i / 'macruronus'i / 'lophius'i / 'loligo'i / 'litopenaeus'i / 'lithodes'i / 'limanda'i / 'lethrinus'i / 'lepidotrigla'i / 'lepidopsetta'i / 'lates'i / 'katwonus'i / 'katwomus'i / 'katsuwonus'i / 'katsuwomus'i / 'illex'i / 'homarus'i / 'himanthalia'i / 'haematococcus'i / 'gadus'i / 'euthynnus (katsuwonus) pelamis'i / 'euthynnus (katsuwonus)'i / 'euthynnus'i / 'ensis'i / 'engraulis'i / 'dunaliella'i / 'dosidicus'i / 'dicentrarchus'i / 'crassostrea'i / 'crangon'i / 'conger'i / 'clupea'i / 'clarias'i / 'cheilopogon'i / 'cerastoderma'i / 'cerastoderm'i / 'anguilla'i / 'anadara'i / 'alle alle'i / 'acipenser'i
|
13
16
|
end
|
14
17
|
|
15
18
|
rule fish_name_latin_second
|
16
|
-
'yessoensis'i / 'vulgaris'i / 'virens'i / 'vannamel'i / 'vannamei'i / 'undulata'i / 'umbilicalis'i / 'thynnus'i / 'tenera'i / 'stylifera'i / 'sprattus'i / 'spp.'i / 'spp'i / 'sombrus'i / 'solea'i / 'solar'i / 'scombrus'i / 'santolla'i / 'salina'i / 'salar'i / 'ringens'i / 'punctatus'i / 'productus'i / 'pluvialis'i / 'platessa'i / 'piscatorius'i / 'pilchardus'i / 'pelatis'i / 'pelanis'i / 'pelamis'i / 'pelagicus'i / 'patagonica'i / 'pangasius'i / 'pacificus'i / 'orientalis'i / 'officinalis'i / 'obesus'i / 'novaezelandiae'i / 'novaezealandiae'i / 'norvegicus'i / 'niloticus'i / 'nerka'i / 'mykiss'i / 'mykis'i / 'myki?s'i / 'murphyi'i / 'muelleri'i / 'morhue'i / 'morhua'i / 'monodon'i / 'monoceros'i / 'microptera'i / 'merluccius'i / 'merlangus'i / 'merguiensis'i / 'maximus'i / 'maxima'i / 'marinus'i / 'magellanicus'i / 'macrocephalus'i / 'maccoyii'i / 'limanda'i / 'lepturus'i / '
|
19
|
+
'yessoensis'i / 'vulgaris'i / 'virens'i / 'vannemei'i / 'vannamel'i / 'vannamei'i / 'undulata'i / 'umbilicalis'i / 'thynnus'i / 'tenera'i / 'stylifera'i / 'sprattus'i / 'spp.'i / 'spp'i / 'sombrus'i / 'solea'i / 'solar'i / 'scombrus'i / 'santolla'i / 'salina'i / 'salar'i / 'ringens'i / 'punctatus'i / 'productus'i / 'pluvialis'i / 'platessa'i / 'piscatorius'i / 'pilchardus'i / 'piclhardus'i / 'pelatis'i / 'pelanis'i / 'pelamis'i / 'pelagicus'i / 'patagonica'i / 'pangasius'i / 'pacificus'i / 'orientalis'i / 'officinalis'i / 'obesus'i / 'novaezelandiae'i / 'novaezealandiae'i / 'norvegicus'i / 'niloticus'i / 'nerka'i / 'mykiss'i / 'mykis'i / 'myki?s'i / 'murphyi'i / 'muelleri'i / 'morhue'i / 'morhua'i / 'monodon'i / 'monoceros'i / 'microptera'i / 'merluccius'i / 'merlangus'i / 'merguiensis'i / 'maximus'i / 'maxima'i / 'marinus'i / 'magellanicus'i / 'macrocephalus'i / 'maccoyii'i / 'limanda'i / 'lepturus'i / 'labrax'i / 'kroyeri'i / 'kisutch'i / 'keta'i / 'jordani'i / 'japonicus'i / 'japonica'i / 'hyptophthalmus'i / 'hypophtalmus'i / 'hippoglossus'i / 'hippoglossoides'i / 'hexodon'i / 'harengus'i / 'gueldenstaedtii'i / 'granulosa'i / 'gorbusche'i / 'gorbuscha'i / 'gladius'i / 'gigas'i / 'gibbosa'i / 'gariepinus'i / 'galloprovincialis'i / 'faber'i / 'encrasicolus'i / 'elongata'i / 'edulis'i / 'edule'i / 'directus'i / 'crangon'i / 'conger'i / 'clarkii'i / 'chilensis'i / 'chalcogramma'i / 'capensis'i / 'cannamel'i / 'cannamei'i / 'canaliculus'i / 'canaliculata'i / 'borealis'i / 'bogaraveo'i / 'bilineata'i / 'australis'i / 'aurata'i / 'atrisignis'i / 'argentinus'i / 'antiquata'i / 'anquilla'i / 'anguilla'i / 'anchoita'i / 'americanus'i / 'albacares'i / 'alalunga'i / 'aeglefinus'i
|
17
20
|
end
|
18
21
|
end
|
19
22
|
end
|
@@ -1,11 +1,14 @@
|
|
1
|
-
# autogenerated by species-treetop-gen-nl.rb on 2020-03-
|
1
|
+
# autogenerated by species-treetop-gen-nl.rb on 2020-03-25
|
2
2
|
module FoodFishParser::Strict::Grammar
|
3
3
|
grammar FishNameNL
|
4
4
|
include Common
|
5
|
+
include FishAllergen
|
5
6
|
|
6
7
|
rule fish_name_nl
|
8
|
+
'(' ws* fish_name_nl ws* ')' /
|
7
9
|
( 'verse'i ws+ / 'kaviaar'i ws+ 'van'i ws+ / 'kaviaar'i ws+ / 'gevilde'i ws+ )?
|
8
10
|
( fish_name_nl_area ws+ )? ( fish_name_nl_attr ws* )? fish_name_nl_name fish_name_nl_suffix?
|
11
|
+
( ws* fish_allergen )?
|
9
12
|
<FishNameCommonNode>
|
10
13
|
end
|
11
14
|
|
@@ -6,6 +6,7 @@ require_relative 'nodes'
|
|
6
6
|
|
7
7
|
# note that the species name files are autogenerated
|
8
8
|
Treetop.load File.dirname(__FILE__) + '/grammar/common'
|
9
|
+
Treetop.load File.dirname(__FILE__) + '/grammar/fish_allergen'
|
9
10
|
Treetop.load File.dirname(__FILE__) + '/grammar/fish_name_latin'
|
10
11
|
Treetop.load File.dirname(__FILE__) + '/grammar/fish_name_nl'
|
11
12
|
Treetop.load File.dirname(__FILE__) + '/grammar/fish_name'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: food_fish_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wvengen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: treetop
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/food_fish_parser/strict/grammar/catch_method.treetop
|
57
57
|
- lib/food_fish_parser/strict/grammar/common.treetop
|
58
58
|
- lib/food_fish_parser/strict/grammar/fao_area.treetop
|
59
|
+
- lib/food_fish_parser/strict/grammar/fish_allergen.treetop
|
59
60
|
- lib/food_fish_parser/strict/grammar/fish_name.treetop
|
60
61
|
- lib/food_fish_parser/strict/grammar/fish_name_latin.treetop
|
61
62
|
- lib/food_fish_parser/strict/grammar/fish_name_nl.treetop
|