From 00c856c0b1feac74df8b404fad94d74a0cf1624a Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 3 Dec 2012 16:48:01 -0800 Subject: Update license, add license boilerplate to most files. Remainder will follow. --- src/libsyntax/parse/attr.rs | 10 ++++++++++ src/libsyntax/parse/classify.rs | 10 ++++++++++ src/libsyntax/parse/comments.rs | 10 ++++++++++ src/libsyntax/parse/common.rs | 10 ++++++++++ src/libsyntax/parse/eval.rs | 10 ++++++++++ src/libsyntax/parse/lexer.rs | 10 ++++++++++ src/libsyntax/parse/mod.rs | 10 ++++++++++ src/libsyntax/parse/obsolete.rs | 10 ++++++++++ src/libsyntax/parse/prec.rs | 10 ++++++++++ src/libsyntax/parse/token.rs | 10 ++++++++++ 10 files changed, 100 insertions(+) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index f0cb1d4ba3e..3f0b031bd06 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use either::{Either, Left, Right}; use ast_util::spanned; use common::*; //resolve bug? diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index e0210feb9de..0ff5c296125 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* Predicates on exprs and stmts that the pretty-printer and parser use */ diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 4f7bfb0d4e9..e5a52628627 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use io::println;//XXXXXXXXxxx use io::ReaderUtil; use util::interner; diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 54ac776fb32..4c14f05d56b 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map::{HashMap}; use ast_util::spanned; use parser::Parser; diff --git a/src/libsyntax/parse/eval.rs b/src/libsyntax/parse/eval.rs index cdfd8a9bcec..c29fe773b3f 100644 --- a/src/libsyntax/parse/eval.rs +++ b/src/libsyntax/parse/eval.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use parser::Parser; use attr::parser_attr; use ast_util::mk_sp; diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 5e174f7f34f..a0cfece6b10 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use diagnostic::span_handler; use codemap::{span, CodeMap, CharPos, BytePos}; use ext::tt::transcribe::{tt_reader, new_tt_reader, dup_tt_reader, diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index c1afc43205c..5a7b62f1ff6 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! The main parser interface #[legacy_exports]; diff --git a/src/libsyntax/parse/obsolete.rs b/src/libsyntax/parse/obsolete.rs index afa87c261f1..aa52575ef45 100644 --- a/src/libsyntax/parse/obsolete.rs +++ b/src/libsyntax/parse/obsolete.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Support for parsing unsupported, old syntaxes, for the purpose of reporting errors. Parsing of these syntaxes diff --git a/src/libsyntax/parse/prec.rs b/src/libsyntax/parse/prec.rs index 3fd905cb8ec..8dada97e35d 100644 --- a/src/libsyntax/parse/prec.rs +++ b/src/libsyntax/parse/prec.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + export as_prec; export unop_prec; export token_to_binop; diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 489c13b146b..684c8414a01 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -1,3 +1,13 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use util::interner; use util::interner::Interner; use std::map::HashMap; -- cgit 1.4.1-3-g733a5