Skip to content

Commit

Permalink
Copyright.
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Mar 19, 2017
1 parent 7901bf3 commit afd7936
Show file tree
Hide file tree
Showing 216 changed files with 1,328 additions and 2 deletions.
26 changes: 26 additions & 0 deletions LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

Copyright © 2008-2017 Katherine Flavel <[email protected]>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

6 changes: 6 additions & 0 deletions bin/foldcase2sets.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/perl -w

#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

use strict;
use warnings;

Expand Down
6 changes: 6 additions & 0 deletions bin/unicode2lx.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/perl -w

#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

use strict;
use warnings;

Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/a.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2 "a";
2 -> 3 "b";
3 -> 4 "c";
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/adjacent.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

0 -> 1 '0';
1 -> 2 'x';

Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/alts.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2 'a';
1 -> 3 'a';
1 -> 2 'b';
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/b.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2 "abc";
2 -> 1 "def";

Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/c.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

5 -> 1 "a";
1 -> 2 "b";
1 -> 4 "c";
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/c4.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

# http://www.nikkostrom.com/publications/phd_thesis/thesis_c4.html

1 -> 2 's';
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/d.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2 "a";
2 -> 3 "a";
3 -> 4 "b";
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/dup.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2 'a';
1 -> 3 'a';

Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/e.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2 'a';
1 -> 3 'b';
3 -> 4 'c';
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/el.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2 'a';
1 -> 2;

Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/epsilon.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2;

start: 1;
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/float.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

0 -> 1 '+';
0 -> 1 '-';
0 -> 1;
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/gvfsm.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

# Adapted from http://graphviz.org/Gallery/directed/fsm.html

9 -> 2 "S(B)";
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/id.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1->2;
a->'b';

Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/la3.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

# An example from LexicalPart3.pdf

11 -> 1;
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/labels.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

#1 -> 2 '\\';
1 -> 2 '.';
1 -> 2 '|';
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/lindyhop.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

closed -> open 'swingout';
open -> closed 'lindycircle';
open -> open 'lindyturn';
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/min.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2 'a';
2 -> 2 'a';

Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/min2.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 2 'a';
2 -> 2 'a';
2 -> 3 'b';
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/min3.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

# a state introduced by reversal

3 -> 3 'a';
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/stray.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

1 -> 3 ;
4 -> 5 ;
6 -> 2 ;
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/todfa.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

# test case for NFA->DFA
# from a*|b

Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/wulf.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

# courtesy wulf, ##c

1 -> 2 'h';
Expand Down
6 changes: 6 additions & 0 deletions examples/fsm/wulf2.fsm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

0 -> 1 'h';
1 -> 2 'x';

Expand Down
6 changes: 6 additions & 0 deletions examples/glob/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright 2008-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/

/*
* An example illustrating glob(3)-like matching for strings by internally
* constructing a DFA from the given globing string. A similar technique
Expand Down
6 changes: 6 additions & 0 deletions examples/iprange/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright 2008-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/

#define _GNU_SOURCE
#include <arpa/inet.h>

Expand Down
6 changes: 6 additions & 0 deletions examples/lx/a.lx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

# Three types of pattern:
# 'literal' - no escaping
# "string" - with C-style escaped characters \r, \n etc
Expand Down
6 changes: 6 additions & 0 deletions examples/lx/scheme.lx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

/[ \t\n]+/;
';' .. '\n';
'#|' .. '#|';
Expand Down
6 changes: 6 additions & 0 deletions examples/rpn/lexer.lx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright 2008-2017 Katherine Flavel
#
# See LICENCE for the full copyright terms.
#

/[ \t\n]+/;

'#' .. "\n";
Expand Down
6 changes: 6 additions & 0 deletions examples/rpn/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright 2008-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
6 changes: 6 additions & 0 deletions examples/words/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright 2008-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/

#include <stdio.h>
#include <string.h>

Expand Down
6 changes: 6 additions & 0 deletions include/adt/bitmap.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright 2008-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/

#ifndef BITMAP_H
#define BITMAP_H

Expand Down
6 changes: 6 additions & 0 deletions include/adt/path.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright 2008-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/

#ifndef PATH_H
#define PATH_H

Expand Down
6 changes: 6 additions & 0 deletions include/adt/priq.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright 2008-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/

#ifndef PRIQ_H
#define PRIQ_H

Expand Down
Loading

0 comments on commit afd7936

Please sign in to comment.