pils 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ module Pils
2
+ VERSION = "0.1.4"
3
+ end
data/pils-0.1.2.gem ADDED
Binary file
data/pils.gemspec ADDED
@@ -0,0 +1,41 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "pils/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pils"
8
+ spec.version = Pils::VERSION
9
+ spec.authors = ["Peter Menke"]
10
+ spec.email = ["peter.menke@upb.de"]
11
+
12
+ spec.summary = %q{Programmieren in linguistischen Seminaren.}
13
+ spec.description = %q{The pils ("Programmieren in linguistischen Seminaren") gem contains a collection of modules, tools and implementations that can be used to introduce coding in linguistic courses.}
14
+ spec.homepage = "https://github.com/pmenke/pils"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
20
+
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ spec.metadata["source_code_uri"] = "https://github.com/pmenke/pils"
23
+ spec.metadata["changelog_uri"] = "https://github.com/pmenke/pils/CHANGELOG"
24
+ else
25
+ raise "RubyGems 2.0 or newer is required to protect against " \
26
+ "public gem pushes."
27
+ end
28
+
29
+ # Specify which files should be added to the gem when it is released.
30
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
31
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
32
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
33
+ end
34
+ spec.bindir = "exe"
35
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
36
+ spec.require_paths = ["lib"]
37
+
38
+ spec.add_development_dependency "bundler", "~> 1.17"
39
+ spec.add_development_dependency "rake", "~> 10.0"
40
+ spec.add_development_dependency "rspec", "~> 3.0"
41
+ end
@@ -0,0 +1,23 @@
1
+ namespace :minitest do
2
+
3
+ desc "Test small course grammar"
4
+ task :parse do
5
+ @grammar = Pils::De::Small.define_grammar
6
+ @lexicon = Pils::De::Small.define_lexicon
7
+ # @grammar.rules.each do |rule|
8
+ # Pils::log rule.display
9
+ # end
10
+
11
+ @parser = Pils::Parsing::Parser.new()
12
+ @parser.grammar = @grammar
13
+ @parser.lexicon = @lexicon
14
+
15
+ @parser.lexicon.describe
16
+
17
+ @parser.init(%w(die Schweine grunzen))
18
+ @result = @parser.parse!(70)
19
+ Pils::log @result[:syntax].display
20
+ Pils::log @result[:semantics]
21
+
22
+ end
23
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pils
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ platform: ruby
6
+ authors:
7
+ - Peter Menke
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: The pils ("Programmieren in linguistischen Seminaren") gem contains a
56
+ collection of modules, tools and implementations that can be used to introduce coding
57
+ in linguistic courses.
58
+ email:
59
+ - peter.menke@upb.de
60
+ executables:
61
+ - pils
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - ".gitignore"
66
+ - ".rspec"
67
+ - ".travis.yml"
68
+ - CODE_OF_CONDUCT.md
69
+ - Gemfile
70
+ - README.md
71
+ - Rakefile
72
+ - bin/console
73
+ - bin/setup
74
+ - exe/pils
75
+ - lib/pils.rb
76
+ - lib/pils/de.rb
77
+ - lib/pils/de/skeleton.rb
78
+ - lib/pils/de/small.rb
79
+ - lib/pils/parsing.rb
80
+ - lib/pils/parsing/cat.rb
81
+ - lib/pils/parsing/grammar.rb
82
+ - lib/pils/parsing/lexicon.rb
83
+ - lib/pils/parsing/parser.rb
84
+ - lib/pils/parsing/rule.rb
85
+ - lib/pils/parsing/tree.rb
86
+ - lib/pils/parsing/wordform.rb
87
+ - lib/pils/structures.rb
88
+ - lib/pils/structures/avm.rb
89
+ - lib/pils/tcf.rb
90
+ - lib/pils/tcf/annotation.rb
91
+ - lib/pils/tcf/bounded_element.rb
92
+ - lib/pils/tcf/geo_annotation.rb
93
+ - lib/pils/tcf/named_entity_annotation.rb
94
+ - lib/pils/tcf/sentence.rb
95
+ - lib/pils/tcf/tcf_document.rb
96
+ - lib/pils/tcf/token.rb
97
+ - lib/pils/tcf/transform/transformer.rb
98
+ - lib/pils/version.rb
99
+ - pils-0.1.2.gem
100
+ - pils.gemspec
101
+ - tasks/testing.rake
102
+ homepage: https://github.com/pmenke/pils
103
+ licenses: []
104
+ metadata:
105
+ allowed_push_host: https://rubygems.org
106
+ homepage_uri: https://github.com/pmenke/pils
107
+ source_code_uri: https://github.com/pmenke/pils
108
+ changelog_uri: https://github.com/pmenke/pils/CHANGELOG
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubygems_version: 3.0.3
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: Programmieren in linguistischen Seminaren.
128
+ test_files: []