Skip to content

Commit

Permalink
Initial skeleton.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jun 9, 2015
0 parents commit 7085d8a
Show file tree
Hide file tree
Showing 16 changed files with 120 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_build
*.hdp
deft-package-local.json
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2015 Bruce Mitchener, Jr.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
structured-document
===================

A library for represented structured text documents as a tree of
elements which contain content and can have attributes.

This is useful for representing HTML, XML, SVG, ReStructuredText
and other structured document formats.
11 changes: 11 additions & 0 deletions deft-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "structured-document",
"description": "",
"keywords": [
],
"license": "MIT",
"default-target": "structured-document",
"tests": [
"structured-document-test-suite-app"
]
}
13 changes: 13 additions & 0 deletions library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Module: dylan-user

define library structured-document
use common-dylan;
use io;

export structured-document;
end library structured-document;

define module structured-document
use common-dylan, exclude: { format-to-string };
use format-out;
end module structured-document;
1 change: 1 addition & 0 deletions registry/generic/structured-document
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
abstract://dylan/structured-document.lid
1 change: 1 addition & 0 deletions registry/generic/structured-document-test-suite
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
abstract://dylan/tests/structured-document-test-suite.lid
1 change: 1 addition & 0 deletions registry/generic/structured-document-test-suite-app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
abstract://dylan/tests/structured-document-test-suite-app.lid
6 changes: 6 additions & 0 deletions structured-document.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Module: structured-document
Synopsis:
Author:
Copyright: See LICENSE file in this distribution.


4 changes: 4 additions & 0 deletions structured-document.lid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Library: structured-document
Target-Type: dll
Files: library
structured-document
11 changes: 11 additions & 0 deletions tests/structured-document-test-suite-app-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library structured-document-test-suite-app
use testworks;
use structured-document-test-suite;
end library;

define module structured-document-test-suite-app
use testworks;
use structured-document-test-suite;
end module;
7 changes: 7 additions & 0 deletions tests/structured-document-test-suite-app.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module: structured-document-test-suite-app
define suite all-structured-document-test-suites ()
suite structured-document-test-suite;
end;

run-test-application(all-structured-document-test-suites);
4 changes: 4 additions & 0 deletions tests/structured-document-test-suite-app.lid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
library: structured-document-test-suite-app
executable: structured-document-test-suite-app
files: structured-document-test-suite-app-library
structured-document-test-suite-app
18 changes: 18 additions & 0 deletions tests/structured-document-test-suite-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module: dylan-user
define library structured-document-test-suite
use common-dylan;
use structured-document;
use testworks;
use system;

export structured-document-test-suite;
end library;

define module structured-document-test-suite
use common-dylan;
use structured-document;
use testworks;

export structured-document-test-suite;
end module;
10 changes: 10 additions & 0 deletions tests/structured-document-test-suite.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module: structured-document-test-suite
synopsis: Test suite for the structured-document library.
define test example-test ()
assert-true(#t);
end test example-test;

define suite structured-document-test-suite ()
test example-test;
end suite;
3 changes: 3 additions & 0 deletions tests/structured-document-test-suite.lid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library: structured-document-test-suite
files: structured-document-test-suite-library
structured-document-test-suite

0 comments on commit 7085d8a

Please sign in to comment.