rprec 1.0.0
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.
- checksums.yaml +7 -0
- data/.rubocop.yml +31 -0
- data/.yardopts +5 -0
- data/CHANGELOG.md +10 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/LICENSE.txt +21 -0
- data/README.md +19 -0
- data/Rakefile +17 -0
- data/Steepfile +14 -0
- data/lib/rprec/array_stream.rb +33 -0
- data/lib/rprec/dsl.rb +140 -0
- data/lib/rprec/grammar.rb +102 -0
- data/lib/rprec/op.rb +37 -0
- data/lib/rprec/parse_error.rb +19 -0
- data/lib/rprec/prec.rb +215 -0
- data/lib/rprec/regexp_lexer.rb +82 -0
- data/lib/rprec/stream.rb +42 -0
- data/lib/rprec/token.rb +24 -0
- data/lib/rprec/version.rb +6 -0
- data/lib/rprec.rb +141 -0
- data/rbs_collection.lock.yaml +12 -0
- data/rbs_collection.yaml +20 -0
- data/sig/rprec/array_stream.rbs +7 -0
- data/sig/rprec/dsl.rbs +26 -0
- data/sig/rprec/grammar.rbs +13 -0
- data/sig/rprec/op.rbs +15 -0
- data/sig/rprec/parse_error.rbs +6 -0
- data/sig/rprec/prec.rbs +21 -0
- data/sig/rprec/regexp_lexer.rbs +19 -0
- data/sig/rprec/stream.rbs +11 -0
- data/sig/rprec/token.rbs +9 -0
- data/sig/rprec/version.rbs +3 -0
- data/sig/rprec.rbs +4 -0
- metadata +82 -0
data/sig/rprec.rbs
ADDED
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rprec
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- TSUYUSATO Kitsune
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-11-29 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: |
|
14
|
+
`RPrec` is an implementation of operator-precedence parsing.
|
15
|
+
The operator-precedence parsing is also known as Pratt parsing.
|
16
|
+
This implementation is extended for mixfix operators which are operators consists of multi parts (e.g. `... ? ... : ...` operator).
|
17
|
+
email:
|
18
|
+
- make.just.on@gmail.com
|
19
|
+
executables: []
|
20
|
+
extensions: []
|
21
|
+
extra_rdoc_files: []
|
22
|
+
files:
|
23
|
+
- ".rubocop.yml"
|
24
|
+
- ".yardopts"
|
25
|
+
- CHANGELOG.md
|
26
|
+
- CODE_OF_CONDUCT.md
|
27
|
+
- LICENSE.txt
|
28
|
+
- README.md
|
29
|
+
- Rakefile
|
30
|
+
- Steepfile
|
31
|
+
- lib/rprec.rb
|
32
|
+
- lib/rprec/array_stream.rb
|
33
|
+
- lib/rprec/dsl.rb
|
34
|
+
- lib/rprec/grammar.rb
|
35
|
+
- lib/rprec/op.rb
|
36
|
+
- lib/rprec/parse_error.rb
|
37
|
+
- lib/rprec/prec.rb
|
38
|
+
- lib/rprec/regexp_lexer.rb
|
39
|
+
- lib/rprec/stream.rb
|
40
|
+
- lib/rprec/token.rb
|
41
|
+
- lib/rprec/version.rb
|
42
|
+
- rbs_collection.lock.yaml
|
43
|
+
- rbs_collection.yaml
|
44
|
+
- sig/rprec.rbs
|
45
|
+
- sig/rprec/array_stream.rbs
|
46
|
+
- sig/rprec/dsl.rbs
|
47
|
+
- sig/rprec/grammar.rbs
|
48
|
+
- sig/rprec/op.rbs
|
49
|
+
- sig/rprec/parse_error.rbs
|
50
|
+
- sig/rprec/prec.rbs
|
51
|
+
- sig/rprec/regexp_lexer.rbs
|
52
|
+
- sig/rprec/stream.rbs
|
53
|
+
- sig/rprec/token.rbs
|
54
|
+
- sig/rprec/version.rbs
|
55
|
+
homepage: https://github.com/makenowjust/rprec
|
56
|
+
licenses:
|
57
|
+
- MIT
|
58
|
+
metadata:
|
59
|
+
homepage_uri: https://github.com/makenowjust/rprec
|
60
|
+
source_code_uri: https://github.com/makenowjust/rprec.git
|
61
|
+
changelog_uri: https://github.com/makenowjust/rprec/blob/main/CHANGELOG.md
|
62
|
+
rubygems_mfa_required: 'true'
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 3.2.0
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
requirements: []
|
78
|
+
rubygems_version: 3.5.0.dev
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: Operator-precedence parsing implementation in Ruby
|
82
|
+
test_files: []
|