Skip to content

Commit 83a16f0

Browse files
committed
remove needless docs and task
1 parent 35c6bc2 commit 83a16f0

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

Rakefile

-8
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ ERR
5858
end
5959
end
6060

61-
desc "Use Racc to regenerate parser.rb from configuration files"
62-
task :build_parser do
63-
assert_dependency_version("Racc", "1.7.1", %|ruby -e "require 'racc'; puts Racc::VERSION"|)
64-
65-
`rm -f lib/graphql/language/parser.rb `
66-
`racc lib/graphql/language/parser.y -o lib/graphql/language/parser.rb`
67-
end
68-
6961
namespace :bench do
7062
def prepare_benchmark
7163
$LOAD_PATH << "./lib" << "./spec/support"

guides/development.md

-36
Original file line numberDiff line numberDiff line change
@@ -163,42 +163,6 @@ GraphQL-Ruby uses a thorough test suite to make sure things work reliably day-af
163163

164164
Don't fret about coding style or organization. There's a minimal Rubocop config in `.rubocop.yml` which runs during CI. You can run it manually with `bundle exec rake rubocop`.
165165

166-
## Lexer and Parser
167-
168-
The lexer and parser use a multistep build process:
169-
170-
- Write the definition (`lexer.rl` or `parser.y`)
171-
- Run the generator (Ragel or Racc) to create `.rb` files (`lexer.rb` or `parser.rb`)
172-
- `require` those `.rb` files in GraphQL-Ruby
173-
174-
To update the lexer or parser, you should update their corresponding _definitions_ (`lexer.rl` or `parser.y`). Then, you can run `bundle exec rake build_parser` to re-generate the `.rb` files.
175-
176-
You will need Ragel to build the lexer (see above).
177-
178-
### Install Ragel and Colm on a Mac
179-
180-
GraphQL Ruby requires Ragel 7.0.0.9 which is not available on Homebrew. To install it, you might have to download it from source.
181-
182-
This is not meant to be a step by step guide and will likely not work as the documentation ages.
183-
184-
Download colm from [http://www.colm.net/files/colm/colm-0.13.0.4.tar.gz](http://www.colm.net/files/colm/colm-0.13.0.4.tar.gz)
185-
186-
Download ragel from [http://www.colm.net/files/ragel/ragel-7.0.0.9.tar.gz](http://www.colm.net/files/ragel/ragel-7.0.0.9.tar.gz)
187-
188-
```sh
189-
# In colm directory
190-
cat README # for install instructions
191-
# The author who added this documentation succeeded with these steps
192-
./configure
193-
make
194-
make install
195-
196-
# After installing colm, in ragel directory
197-
./configure
198-
make
199-
make install
200-
```
201-
202166
## Website
203167

204168
To update the website, update the `.md` files in `guides/`.

0 commit comments

Comments
 (0)