mok-parser 0.3.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/.document +5 -0
- data/.gitignore +42 -0
- data/COPYING +674 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +19 -0
- data/History.rdoc +42 -0
- data/LICENSE.txt +14 -0
- data/README.rdoc +22 -0
- data/RELEASE +1 -0
- data/Rakefile +1 -0
- data/VERSION +1 -0
- data/bin/mok-parser +19 -0
- data/lib/mok-parser.rb +10 -0
- data/lib/mokblockparser.output +670 -0
- data/lib/mokblockparser.ry +392 -0
- data/lib/mokblockparser.tab.rb +773 -0
- data/lib/mokelement.rb +266 -0
- data/lib/mokinlineparser.output +1804 -0
- data/lib/mokinlineparser.ry +536 -0
- data/lib/mokinlineparser.tab.rb +1268 -0
- data/lib/parserutility.rb +21 -0
- data/mok-parser.gemspec +21 -0
- data/sample.raf +4 -0
- metadata +110 -0
data/Gemfile.lock
ADDED
data/History.rdoc
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
== 0.3.0 2013-12-12
|
2
|
+
* プロジェクト名を raf-parser から mok-parser に変更
|
3
|
+
|
4
|
+
* new: 新しいQUITE構文の追加
|
5
|
+
* change: Referenceエレメントの拡張子オプション名を extension から reference_extension に変更
|
6
|
+
* chenge: org-mode のテーブルヘッダ記法(|-)を無視するように変更
|
7
|
+
* change: Quoteエレメントの名前をPreformatに変更
|
8
|
+
* remove: テストファイルを削除(TODO: rspec の追加)
|
9
|
+
|
10
|
+
== 0.2.2 2013-12-05
|
11
|
+
* 変数定義の VARIABLE((@..|..@))書式を追加
|
12
|
+
* 空文字を返す Empty クラスを追加
|
13
|
+
|
14
|
+
== 0.2.1 2013-12-04
|
15
|
+
* kbd書式 ((%...%)) を追加
|
16
|
+
* code書式 (({...})) を追加
|
17
|
+
* ERBの処理をraccでパースする前に移動
|
18
|
+
|
19
|
+
== 0.2.0 2013-12-01
|
20
|
+
* プロジェクト名を raf から raf-parser に変更
|
21
|
+
* raf2html 関連のファイルを raf2html プロジェクトに移動
|
22
|
+
|
23
|
+
== 0.1.0 2013-11-26
|
24
|
+
* Ruby-2.0.0 をサポート
|
25
|
+
* Ruby-1.8.x, Ruby-1.9.x のサポートを終了
|
26
|
+
* ERB書式(<%=...%>)を正しく処理できていなかった問題を修正
|
27
|
+
|
28
|
+
== 0.0.5 2012-12-12
|
29
|
+
* supported ruby1.8 only
|
30
|
+
|
31
|
+
== 0.0.4 2012-12-10
|
32
|
+
* added "-*- encoding: utf-8 -*-" in code files.
|
33
|
+
* support ruby1.9
|
34
|
+
|
35
|
+
== 0.0.3 2011-04-10
|
36
|
+
* typo fix
|
37
|
+
|
38
|
+
== 0.0.2 2011-04-07
|
39
|
+
* unit test passed
|
40
|
+
|
41
|
+
== 0.0.1 2011-04-07
|
42
|
+
* first public version
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Copyright (C) garin <garin54@gmail.com> 2011
|
2
|
+
|
3
|
+
This program is free software: you can redistribute it and/or modify
|
4
|
+
it under the terms of the GNU General Public License as published by
|
5
|
+
the Free Software Foundation, either version 3 of the License, or
|
6
|
+
(at your option) any later version.
|
7
|
+
|
8
|
+
This program is distributed in the hope that it will be useful,
|
9
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
GNU General Public License for more details.
|
12
|
+
|
13
|
+
You should have received a copy of the GNU General Public License
|
14
|
+
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
data/README.rdoc
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
= mok-parser
|
2
|
+
"mok" is simple document format.
|
3
|
+
refer to : http://garin.jp/doc/mok/mok (this page is japanese)
|
4
|
+
|
5
|
+
== INSTALLATION
|
6
|
+
// check ruby version
|
7
|
+
$ ruby -v
|
8
|
+
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
|
9
|
+
|
10
|
+
// mok gem package install
|
11
|
+
$ gem install mok-parser
|
12
|
+
|
13
|
+
== UTILITIES
|
14
|
+
=== mok-parser
|
15
|
+
print mok format version.
|
16
|
+
|
17
|
+
== Read more
|
18
|
+
Official Web Site : http://garin.jp/doc/mok/mok (this page is japanese)
|
19
|
+
|
20
|
+
== Copyright
|
21
|
+
Copyright (c) 2011-2013 garin. See LICENSE.txt for
|
22
|
+
further details.
|
data/RELEASE
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2013-12-12
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.3.0
|
data/bin/mok-parser
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
# Copyright (C) garin <garin54@gmail.com> 2011-2013
|
4
|
+
# See the included file COPYING for details.
|
5
|
+
$:.unshift File.join(File.dirname(__FILE__), "../lib")
|
6
|
+
require "mok-parser"
|
7
|
+
require "optparse"
|
8
|
+
|
9
|
+
opt = OptionParser.new do |opt|
|
10
|
+
opt.version = Mok::VERSION
|
11
|
+
opt.release = Mok::RELEASE
|
12
|
+
opt.banner = <<EOL
|
13
|
+
"mok" is simple document format.
|
14
|
+
Read more: https://github.com/garin/mok-parser
|
15
|
+
EOL
|
16
|
+
end
|
17
|
+
|
18
|
+
opt.parse!(ARGV)
|
19
|
+
puts opt.help
|
data/lib/mok-parser.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Copyright (C) garin <garin54@gmail.com> 2011-2013
|
3
|
+
# See the included file COPYING for details.
|
4
|
+
require 'bundler/setup'
|
5
|
+
require "mokblockparser.tab"
|
6
|
+
|
7
|
+
module Mok
|
8
|
+
VERSION = File.readlines(File.join(File.dirname(__FILE__),"../VERSION"))[0].strip
|
9
|
+
RELEASE = File.readlines(File.join(File.dirname(__FILE__),"../RELEASE"))[0].strip
|
10
|
+
end
|