github-markup 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +4 -0
- data/README.md +11 -0
- data/lib/github/markup/version.rb +1 -1
- data/lib/github/markups.rb +3 -6
- data/test/markups/README.pod.html +88 -98
- metadata +2 -2
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -73,6 +73,17 @@ Or, more realistically:
|
|
73
73
|
GitHub::Markup.render(file, File.read(file))
|
74
74
|
|
75
75
|
|
76
|
+
Testing
|
77
|
+
-------
|
78
|
+
|
79
|
+
To run the tests:
|
80
|
+
|
81
|
+
$ rake
|
82
|
+
|
83
|
+
To add tests see the `Commands` section earlier in this
|
84
|
+
README.
|
85
|
+
|
86
|
+
|
76
87
|
Contributing
|
77
88
|
------------
|
78
89
|
|
data/lib/github/markups.rb
CHANGED
@@ -23,11 +23,8 @@ command('asciidoc -s --backend=xhtml11 -o - -', /asciidoc/)
|
|
23
23
|
#
|
24
24
|
# Any block passed to `command` will be handed the command's STDOUT for
|
25
25
|
# post processing.
|
26
|
-
command("/usr/bin/env
|
27
|
-
|
28
|
-
|
29
|
-
FileUtils.rm("pod2htmd.tmp") if File.exists?('pod2htmd.tmp') rescue nil
|
30
|
-
FileUtils.rm("pod2htmi.tmp") if File.exists?('pod2htmi.tmp') rescue nil
|
31
|
-
$1.sub('<!-- INDEX BEGIN -->', '').sub('<!-- INDEX END -->', '')
|
26
|
+
command("/usr/bin/env perl -MPod::Simple::HTML -e Pod::Simple::HTML::go", /pod/) do |rendered|
|
27
|
+
if rendered =~ /<!-- start doc -->\s*(.+)\s*<!-- end doc -->/mi
|
28
|
+
$1
|
32
29
|
end
|
33
30
|
end
|
@@ -1,118 +1,108 @@
|
|
1
|
+
<a name='___top' class='dummyTopAnchor' ></a>
|
1
2
|
|
2
|
-
<
|
3
|
-
|
3
|
+
<h1><a class='u' href='#___top' title='click to go to top of document'
|
4
|
+
name="Matrixy"
|
5
|
+
>Matrixy</a></h1>
|
4
6
|
|
5
|
-
<
|
7
|
+
<h2><a class='u' href='#___top' title='click to go to top of document'
|
8
|
+
name="INTRODUCTION"
|
9
|
+
>INTRODUCTION</a></h2>
|
6
10
|
|
7
|
-
|
8
|
-
|
11
|
+
<p>This is a port of the MATLAB/Octave programming language to Parrot.
|
12
|
+
See the ROADMAP file for more information on the status of this project,
|
13
|
+
and what else needs to be done.</p>
|
9
14
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<li><a href="#dependencies">DEPENDENCIES</a></li>
|
14
|
-
<ul>
|
15
|
+
<h2><a class='u' href='#___top' title='click to go to top of document'
|
16
|
+
name="ABOUT"
|
17
|
+
>ABOUT</a></h2>
|
15
18
|
|
16
|
-
|
17
|
-
<li><a href="#parrot_linear_algebra">Parrot-Linear-Algebra</a></li>
|
18
|
-
</ul>
|
19
|
+
<p>Primary goals are:</p>
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<li><a href="#contact">CONTACT</a></li>
|
24
|
-
</ul>
|
21
|
+
<blockquote>
|
22
|
+
<p>=item* Create a working compiler that understands the majority of the MATLAB/Octave programming language.</p>
|
23
|
+
</blockquote>
|
25
24
|
|
26
|
-
|
25
|
+
<h2><a class='u' href='#___top' title='click to go to top of document'
|
26
|
+
name="IMPLEMENTATION"
|
27
|
+
>IMPLEMENTATION</a></h2>
|
27
28
|
|
28
|
-
<
|
29
|
-
</div>
|
29
|
+
<p>This project is broken into three primary components:</p>
|
30
30
|
|
31
|
+
<blockquote>
|
32
|
+
<p>=item* The first is the parser,
|
33
|
+
located in the <code>src/parser/</code> directory.
|
34
|
+
The parser proper is composed of three source files,
|
35
|
+
<em>grammar.pg</em> which is a Perl6Grammar file,
|
36
|
+
and <em>actions.pm</em> which is the associated actions file written in NQP,
|
37
|
+
and <em>grammar-oper.pm</em> which is the operator precidence parser.
|
38
|
+
In addition,
|
39
|
+
several helper functions used by the parser are located in <code>src/internals</code>.</p>
|
40
|
+
|
41
|
+
<p>=item* The second component is the library of builtin functions in the <code>src/builtins/</code> directory.
|
42
|
+
These functions are,
|
43
|
+
currently,
|
44
|
+
written primarily in PIR.
|
45
|
+
Function names prefixed with an underscore are "private" functions for use with the parser.
|
46
|
+
Other functions should have names which are the same as names for regular MATLAB or Octave functions,
|
47
|
+
since they will be available to the HLL.
|
48
|
+
These are also separated into different namespaces depending on visibility and utility.</p>
|
49
|
+
|
50
|
+
<p>=item* A number of library functions are written in M,
|
51
|
+
or mostly M with some inline PIR code in <code>toolbox/</code>.</p>
|
52
|
+
</blockquote>
|
53
|
+
|
54
|
+
<h2><a class='u' href='#___top' title='click to go to top of document'
|
55
|
+
name="DEPENDENCIES"
|
56
|
+
>DEPENDENCIES</a></h2>
|
31
57
|
|
32
|
-
<p>
|
33
|
-
</p>
|
34
|
-
<h1><a name="matrixy">Matrixy</a></h1>
|
35
|
-
<p>
|
36
|
-
</p>
|
37
|
-
<h2><a name="introduction">INTRODUCTION</a></h2>
|
38
|
-
<p>This is a port of the MATLAB/Octave programming language to Parrot. See the
|
39
|
-
ROADMAP file for more information on the status of this project, and what else
|
40
|
-
needs to be done.</p>
|
41
|
-
<p>
|
42
|
-
</p>
|
43
|
-
<h2><a name="about">ABOUT</a></h2>
|
44
|
-
<p>Primary goals are:</p>
|
45
|
-
<ul>
|
46
|
-
<li><strong><a name="create_a_working_compiler_that_understands_the_majority_of_the_matlab_octave_programming_language" class="item">Create a working compiler that understands the majority of the
|
47
|
-
MATLAB/Octave programming language.</a></strong>
|
48
|
-
|
49
|
-
</ul>
|
50
|
-
<p>
|
51
|
-
</p>
|
52
|
-
<h2><a name="implementation">IMPLEMENTATION</a></h2>
|
53
|
-
<p>This project is broken into three primary components:</p>
|
54
|
-
<ul>
|
55
|
-
<li><strong><a name="the_first_is_the_parser_located_in_the_src_parser_directory_the_parser_proper_is_composed_of_three_source_files_grammar_pg_which_is_a_perl6grammar_file_and_actions_pm_which_is_the_associated_actions_file_written_in_nqp_and_grammar_oper_pm_which_is_the_operator_precidence_parser_in_addition_several_helper_functions_used_by_the_parser_are_located_in_src_internals" class="item">The first is the parser, located in the <code>src/parser/</code> directory. The
|
56
|
-
parser proper is composed of three source files, <em class="file">grammar.pg</em> which is a
|
57
|
-
Perl6Grammar file, and <em class="file">actions.pm</em> which is the associated actions file
|
58
|
-
written in NQP, and <em class="file">grammar-oper.pm</em> which is the operator precidence parser.
|
59
|
-
In addition, several helper functions used by the parser are located in
|
60
|
-
<code>src/internals</code>.</a></strong>
|
61
|
-
|
62
|
-
<li><strong><a name="the_second_component_is_the_library_of_builtin_functions_in_the_src_builtins_directory_these_functions_are_currently_written_primarily_in_pir_function_names_prefixed_with_an_underscore_are_private_functions_for_use_with_the_parser_other_functions_should_have_names_which_are_the_same_as_names_for_regular_matlab_or_octave_functions_since_they_will_be_available_to_the_hll_these_are_also_separated_into_different_namespaces_depending_on_visibility_and_utility" class="item">The second component is the library of builtin functions in the
|
63
|
-
<code>src/builtins/</code> directory. These functions are, currently, written primarily in
|
64
|
-
PIR. Function names prefixed with an underscore are "private" functions for use
|
65
|
-
with the parser. Other functions should have names which are the same as names
|
66
|
-
for regular MATLAB or Octave functions, since they will be available to the
|
67
|
-
HLL. These are also separated into different namespaces depending on visibility
|
68
|
-
and utility.</a></strong>
|
69
|
-
|
70
|
-
<li><strong><a name="a_number_of_library_functions_are_written_in_m_or_mostly_m_with_some_inline_pir_code_in_toolbox" class="item">A number of library functions are written in M, or mostly M with some
|
71
|
-
inline PIR code in <code>toolbox/</code>.</a></strong>
|
72
|
-
|
73
|
-
</ul>
|
74
|
-
<p>
|
75
|
-
</p>
|
76
|
-
<h2><a name="dependencies">DEPENDENCIES</a></h2>
|
77
58
|
<p>Matrixy depends on these dependencies:</p>
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
<
|
84
|
-
|
59
|
+
|
60
|
+
<h3><a class='u' href='#___top' title='click to go to top of document'
|
61
|
+
name="Parrot"
|
62
|
+
>Parrot</a></h3>
|
63
|
+
|
64
|
+
<p>To get a proper version of Parrot to build Matrixy,
|
65
|
+
you will need to check out and build Parrot from source:</p>
|
66
|
+
|
67
|
+
<pre> svn co http://svn.parrot.org/parrot/trunk parrot
|
85
68
|
cd parrot
|
86
69
|
perl Configure.pl
|
87
|
-
make
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
manipulation libraries</p>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<
|
100
|
-
|
70
|
+
make && make test && make install-dev</pre>
|
71
|
+
|
72
|
+
<h3><a class='u' href='#___top' title='click to go to top of document'
|
73
|
+
name="Parrot-Linear-Algebra"
|
74
|
+
>Parrot-Linear-Algebra</a></h3>
|
75
|
+
|
76
|
+
<p>The linear algebra package for Parrot is available separately and provides functionality required by Matrixy. This includes matrix data types and matrix manipulation libraries</p>
|
77
|
+
|
78
|
+
<h2><a class='u' href='#___top' title='click to go to top of document'
|
79
|
+
name="BUILDING"
|
80
|
+
>BUILDING</a></h2>
|
81
|
+
|
82
|
+
<p>Once all dependencies are in place, you can build Matrixy using this sequence of commands:</p>
|
83
|
+
|
84
|
+
<pre> perl Configure.pl
|
101
85
|
nmake test</pre>
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
86
|
+
|
87
|
+
<h2><a class='u' href='#___top' title='click to go to top of document'
|
88
|
+
name="TODO"
|
89
|
+
>TODO</a></h2>
|
90
|
+
|
91
|
+
<pre> * Parser
|
107
92
|
* Standard Builtins
|
108
93
|
* Test against Octave Test Suite.</pre>
|
109
|
-
|
110
|
-
|
111
|
-
|
94
|
+
|
95
|
+
<h2><a class='u' href='#___top' title='click to go to top of document'
|
96
|
+
name="BUGS"
|
97
|
+
>BUGS</a></h2>
|
98
|
+
|
112
99
|
<p>Lots!</p>
|
113
|
-
|
114
|
-
|
115
|
-
|
100
|
+
|
101
|
+
<h2><a class='u' href='#___top' title='click to go to top of document'
|
102
|
+
name="CONTACT"
|
103
|
+
>CONTACT</a></h2>
|
104
|
+
|
116
105
|
<p>If you need to contact the Matrixy team, go to the project home page at:</p>
|
106
|
+
|
117
107
|
<p>www.github.com\Whiteknight\matrixy</p>
|
118
108
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-markup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-02-09 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|