Skip to content

Commit

Permalink
Modularize project
Browse files Browse the repository at this point in the history
Move every class and some other stuff to separate files. Still a work
in progress. I need to address that CPointer's won't let me store a
$tree.  I could avoid using it and just require all arguments.  Then I
would need to create another set of convenience classes to make it truly
sugary.
  • Loading branch information
MadcapJake committed Apr 11, 2016
1 parent 746cba4 commit e39369f
Show file tree
Hide file tree
Showing 15 changed files with 990 additions and 882 deletions.
18 changes: 18 additions & 0 deletions .atom-build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"cmd": "perl6",
"name": "Perl 6 Check Mode",
"args": ["-Ilib", "-c", "{FILE_ACTIVE}"],
"sh": true,
"cwd": "/home/jrusso/github/p6-myhtml",
"errorMatch": "\\s*at (?<file>\\/(?:[\\w\\-]+\\/)+\\w+.pm6)(?:\\s+\\((?:\\w|:)+\\))?:(?<line>\\d+)",
"keymap": "ctrl+alt+c",
"atomCommandName": "Perl6:Check",
"targets": {
"Perl 6 Tests": {
"cmd": "prove",
"args": ["-v", "-e", "'perl6 -Ilib'", "t/"],
"atomCommandName": "Perl6:Test"
}
}

}
13 changes: 13 additions & 0 deletions eg/attributes-high.pl6
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use v6.c;
use lib 'lib';
use Test;

use HTML::MyHTML;

my $html = "<div></div>";

my MyHTML $myhtml .= new: opt => PARSE_MODE_SEPARATELY;

is $myhtml.parse($html):fragment, 0, 'myhtml_parse_fragment returns OK';

$myhtml.dispose;
2 changes: 2 additions & 0 deletions eg/get-title-high.pl6
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
use v6.c';
use lib 'lib';
Loading

0 comments on commit e39369f

Please sign in to comment.