Skip to content

Commit

Permalink
Bring repo into compliance with Google open-source policies.
Browse files Browse the repository at this point in the history
- added AUTHORS, CONTRIBUTORS, and CONTRIBUTING.md files.
- removed copyright notices from source files.
- rewrote tiny bit of information in BIBLIOGRAPHY that didn't
  have a CLA.
- removed third_party files from repo.
  • Loading branch information
haberman committed Jul 8, 2015
1 parent 4e92016 commit a12a123
Show file tree
Hide file tree
Showing 35 changed files with 14 additions and 1,815 deletions.
5 changes: 5 additions & 0 deletions AUTHORS
@@ -0,0 +1,5 @@
# Copyright Holders.

Google, Inc.
Joshua Haberman <jhaberman@gmail.com>
Matt Brubeck <mbrubeck@limpet.net>
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,7 @@
## <a name="cla"></a> Signing the CLA

Please sign the [Google Contributor License Agreement
(CLA)](https://cla.developers.google.com/)
before sending pull requests. For any code changes to be
accepted, the CLA must be signed. It's a quick process, I
promise!
1 change: 1 addition & 0 deletions CONTRIBUTORS
@@ -0,0 +1 @@
# People who have contributed code but are not copyright holders.
3 changes: 0 additions & 3 deletions LICENSE
@@ -1,7 +1,4 @@

Copyright (c) 2007-2009, Joshua Haberman
All rights reserved.

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

Expand Down
2 changes: 0 additions & 2 deletions compiler/bc.lua
Expand Up @@ -6,8 +6,6 @@
A quick and dirty module for writing files in Bitcode format.
Copyright (c) 2007 Joshua Haberman. See LICENSE for details.
--------------------------------------------------------------------]]--
module("bc", package.seeall)
Expand Down
2 changes: 0 additions & 2 deletions compiler/bootstrap/regex_parser.lua
Expand Up @@ -8,8 +8,6 @@
Hopefully this could eventually be implemented using the engine itself,
but even then you need a way to bootstrap.
Copyright (c) 2007-2008 Joshua Haberman. See LICENSE for details.
--------------------------------------------------------------------]]--
require "data_structures"
Expand Down
2 changes: 0 additions & 2 deletions compiler/bootstrap/rtn.lua
Expand Up @@ -7,8 +7,6 @@
A parser for our grammar language that builds RTNs representing the
input grammar.
Copyright (c) 2007-2008 Joshua Haberman. See LICENSE for details.
--------------------------------------------------------------------]]--
require "misc"
Expand Down
2 changes: 0 additions & 2 deletions compiler/bytecode.lua
Expand Up @@ -7,8 +7,6 @@
Code that takes the final optimized parsing structures and emits them
to bytecode (in Bitcode format).
Copyright (c) 2007-2008 Joshua Haberman. See LICENSE for details.
--------------------------------------------------------------------]]--
require "bc"
Expand Down
2 changes: 0 additions & 2 deletions compiler/data_structures.lua
Expand Up @@ -7,8 +7,6 @@
Implementations of useful data structures that we use often.
Most of these are just useful interfaces around Lua's tables.
Copyright (c) 2007-2008 Joshua Haberman. See LICENSE for details.
--------------------------------------------------------------------]]--
require "misc"
Expand Down
2 changes: 0 additions & 2 deletions compiler/fa.lua
Expand Up @@ -27,8 +27,6 @@
of understanding all the different ways NFAs and DFAs are used throughout
Gazelle.
Copyright (c) 2007-2008 Joshua Haberman. See LICENSE for details.
--------------------------------------------------------------------]]--
require "misc"
Expand Down
2 changes: 0 additions & 2 deletions compiler/fa_algorithms.lua
Expand Up @@ -9,8 +9,6 @@
not interpret the meaning of the edges. It is nice to keep these
algorithms separate from the FA data structure in fa.lua.
Copyright (c) 2008 Joshua Haberman. See LICENSE for details.
--------------------------------------------------------------------]]--
Expand Down
2 changes: 0 additions & 2 deletions compiler/grammar.lua
Expand Up @@ -21,8 +21,6 @@
Finally, it is written out to bytecode by the bytecode emitting step.
Copyright (c) 2008 Joshua Haberman. See LICENSE for details.
--------------------------------------------------------------------]]--
require "data_structures"
Expand Down
2 changes: 0 additions & 2 deletions compiler/intfa_combine.lua
Expand Up @@ -11,8 +11,6 @@
as possible -- only when two terminals conflict is it necessary to
use different DFAs.
Copyright (c) 2007 Joshua Haberman. See LICENSE for details.
--------------------------------------------------------------------]]--
-- Determine what terminals (if any) conflict with each other.
Expand Down
2 changes: 1 addition & 1 deletion docs/BIBLIOGRAPHY
Expand Up @@ -48,7 +48,7 @@ Parr, Terence. The Definitive ANTLR Reference, 2007
and semantic predicates.


Parr, Terence. ANTLR 3.0 Lookahead Analysis (December 06, 2006 entry)
Parr, Terence. ANTLR 3.0 Lookahead Analysis (blog entry from 2006-12-06)
Available online at http://www.antlr.org/blog/antlr3/lookahead.tml

ANTLR's algorithm for calculating LL(*) lookahead turns out to be quite
Expand Down
2 changes: 0 additions & 2 deletions lang_ext/lua/bc_read_stream.c
Expand Up @@ -6,8 +6,6 @@
These are Lua wrappers for bc_read_stream.
Copyright (c) 2007 Joshua Haberman. See LICENSE for details.
*********************************************************************/

#include "bc_read_stream_lua.h"
Expand Down
2 changes: 0 additions & 2 deletions lang_ext/lua/gazelle.c
Expand Up @@ -6,8 +6,6 @@
These are Lua wrappers for Gazelle.
Copyright (c) 2007-2008 Joshua Haberman. See LICENSE for details.
*********************************************************************/

#include <gazelle/parse.h>
Expand Down
2 changes: 0 additions & 2 deletions runtime/bc_read_stream.c
Expand Up @@ -9,8 +9,6 @@
memory at a time, and is designed to have a very small memory
footprint.
Copyright (c) 2007 Joshua Haberman. See LICENSE for details.
*********************************************************************/

#include "gazelle/bc_read_stream.h"
Expand Down
2 changes: 0 additions & 2 deletions runtime/include/gazelle/bc_read_stream.h
Expand Up @@ -8,8 +8,6 @@
in Bitcode format. It allows skipping blocks and rewinding to the
beginning of a block.
Copyright (c) 2007 Joshua Haberman. See LICENSE for details.
*********************************************************************/

#ifndef BITCODE_READ_STREAM
Expand Down
2 changes: 0 additions & 2 deletions runtime/include/gazelle/grammar.h
Expand Up @@ -12,8 +12,6 @@
A compiled Gazelle grammar consists of a bunch of state machines of
various kinds -- see the manual for more details.
Copyright (c) 2007-2009 Joshua Haberman. See LICENSE for details.
*********************************************************************/

#ifndef GAZELLE_GRAMMAR
Expand Down
2 changes: 0 additions & 2 deletions runtime/include/gazelle/parse.h
Expand Up @@ -6,8 +6,6 @@
This file presents the public API for parsing text using Gazelle.
Copyright (c) 2007-2009 Joshua Haberman. See LICENSE for details.
*********************************************************************/

#ifndef GAZELLE_PARSE
Expand Down
2 changes: 0 additions & 2 deletions runtime/load_grammar.c
Expand Up @@ -7,8 +7,6 @@
This file contains the code to load data from a bitcode stream into
the data structures that the interpreter uses to parse.
Copyright (c) 2007-2008 Joshua Haberman. See LICENSE for details.
*********************************************************************/

#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions runtime/parse.c
Expand Up @@ -14,8 +14,6 @@
The interpreter primarily consists of maintaining the parse stack
properly and transitioning the frames in response to the input.
Copyright (c) 2007-2009 Joshua Haberman. See LICENSE for details.
*********************************************************************/

#include <stdio.h>
Expand Down

0 comments on commit a12a123

Please sign in to comment.