Browse files

getting legal, BSD license for efene, adding LICENSE file and headers…

… to all sources
  • Loading branch information...
1 parent 91f15a2 commit 975877d58de9096a9c05ca38b2340a03ec346ba9 @marianoguerra committed Aug 8, 2010
Showing with 61 additions and 1 deletion.
  1. +25 −0 LICENSE
  2. +1 −0 lib/ast.ifn
  3. +1 −0 lib/dct.ifn
  4. +1 −0 lib/lst.ifn
  5. +1 −0 lib/mod.ifn
  6. +1 −0 lib/mongomapper.ifn
  7. +1 −0 lib/obj.ifn
  8. +1 −0 lib/rec.ifn
  9. +1 −0 lib/rest.ifn
  10. +1 −0 lib/spec.ifn
  11. +1 −0 lib/type.ifn
  12. +1 −0 lib/validate.ifn
  13. +2 −0 src/fn.erl
  14. +2 −0 src/fn_build.erl
  15. +2 −0 src/fn_errors.erl
  16. +2 −0 src/fn_gen.erl
  17. +2 −0 src/fn_lexer.xrl
  18. +7 −0 src/fn_lexpp.erl
  19. +2 −0 src/fn_meta.erl
  20. +2 −0 src/fn_parser.yrl
  21. +2 −0 src/fn_pp.erl
  22. +2 −1 src/fn_shell.erl
View
25 LICENSE
@@ -0,0 +1,25 @@
+Copyright (c) 2010, Mariano Guerra
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * 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.
+ * Neither the name of efene nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+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 Mariano Guerra 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.
+
View
1 lib/ast.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@@todo("refine types and specs and add the missing ones")
@type(ast()) -> tuple()
View
1 lib/dct.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@public
set = fn (Dict, Key, Val)
View
1 lib/lst.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@public
each = fn (List, Fun)
View
1 lib/mod.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@@moddoc("functions to manipulate modules")
@doc("return the documentation of *Mod* as a string")
View
1 lib/mongomapper.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@@moddoc("This module provides a mapper between efene objects and mongodb
through the `emongo`__ library.
View
1 lib/obj.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@@moddoc("Module to do operation on efene objects.
This module has some functions that expect the result of mochijson2.decode
View
1 lib/rec.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@public
@doc("handle the @rec attribute, receive a record definition and return the
View
1 lib/rest.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@@moddoc("Module to make REST APIs by using function attributes")
@rec(route) -> (method=get, path="^/$", transforms=nil,
View
1 lib/spec.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@public
attribute = fn (local, Line, (return, Args, Return))
View
1 lib/type.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@public
attribute = fn (local, Line, (return, Args, Return))
View
1 lib/validate.ifn
@@ -1,3 +1,4 @@
+@@license("New BSD License, part of efene, see LICENSE for details")
@@moddoc("module to get useful validation functions to be used with obj.validate")
@doc("returns a validator that checks if the parameter is a string")
View
2 src/fn.erl
@@ -10,6 +10,8 @@
erl_to_ast/1, erlmod_to_ast/2, mod_to_ast/2,
run/0, run/1]).
+-license("New BSD License, part of efene, see LICENSE for details").
+
% lexer functions
get_lex_from_str(String, FileName) ->
View
2 src/fn_build.erl
@@ -1,6 +1,8 @@
-module(fn_build).
-export([build/0]).
+-license("New BSD License, part of efene, see LICENSE for details").
+
build() ->
leex:file(fn_lexer),
compile:file(fn_lexer),
View
2 src/fn_errors.erl
@@ -1,6 +1,8 @@
-module(fn_errors).
-export([handle/1, fail_on_tab/1, format_error/1]).
+-license("New BSD License, part of efene, see LICENSE for details").
+
format_error(_, {error, {Line, fn, {illegal, tab}}}) ->
io:format("line ~p: illegal tab found on ifene source (use spaces for indentation)~n", [Line]);
format_error(_, {error, {Line, fn_lexer, {illegal, Char}}, _Unk}) ->
View
2 src/fn_gen.erl
@@ -1,6 +1,8 @@
-module(fn_gen).
-compile(export_all).
+-license("New BSD License, part of efene, see LICENSE for details").
+
literal_to_ast(Val, Line) ->
literal_to_ast(Val, Line, false).
View
2 src/fn_lexer.xrl
@@ -1,3 +1,5 @@
+% New BSD License, part of efene, see LICENSE for details
+
Definitions.
% binary operators
View
7 src/fn_lexpp.erl
@@ -1,6 +1,8 @@
-module(fn_lexpp).
-export([clean_whites/1, indent_to_blocks/1]).
+-license("New BSD License, part of efene, see LICENSE for details").
+
% lex post procesor, modifies the lex generated by fn_lexer.erl to make it
% suitable for fn_parser.yrl
@@ -72,6 +74,11 @@ pre_cleanup([{arrow, _, _}=Token, {endl, _, _}, {white, _, _}|Tokens], Accum) ->
pre_cleanup([{arrow, _, _}=Token, {endl, _, _}|Tokens], Accum) ->
pre_cleanup(Tokens, [Token|Accum]);
+pre_cleanup([{fatarrow, _, _}=Token, {endl, _, _}, {white, _, _}|Tokens], Accum) ->
+ pre_cleanup(Tokens, [Token|Accum]);
+pre_cleanup([{fatarrow, _, _}=Token, {endl, _, _}|Tokens], Accum) ->
+ pre_cleanup(Tokens, [Token|Accum]);
+
pre_cleanup([{else, _}=Else, {endl, _, _}, {white, _, _}, {'if', _}=Token|Tokens], Accum) ->
pre_cleanup(Tokens, [Token|[Else|Accum]]);
pre_cleanup([{else, _}=Else, {endl, _, _}, {'if', _}=Token|Tokens], Accum) ->
View
2 src/fn_meta.erl
@@ -1,6 +1,8 @@
-module(fn_meta).
-export([eval/1, astify/2]).
+-license("New BSD License, part of efene, see LICENSE for details").
+
eval(Ast) ->
Bindings = erl_eval:new_bindings(),
{value, Result, _NewBindings} = erl_eval:expr(Ast, Bindings),
View
2 src/fn_parser.yrl
@@ -1,3 +1,5 @@
+% New BSD License, part of efene, see LICENSE for details
+
Nonterminals
program tl_exprs tl_expr fn_def fun_def fn_patterns fn_pattern
fn_parameters parameters fn_block exprs literal bool_lit send_expr
View
2 src/fn_pp.erl
@@ -1,6 +1,8 @@
-module(fn_pp).
-export([pretty_print/2]).
+-license("New BSD License, part of efene, see LICENSE for details").
+
% pretty print from tokens, the tokens must be in the final format
% that means with blocks and no whitespaces or tabs
pretty_print(Tokens, PrintBlocks) ->
View
3 src/fn_shell.erl
@@ -1,7 +1,8 @@
-module(fn_shell).
-
-export([start/0]).
+-license("New BSD License, part of efene, see LICENSE for details").
+
start() ->
loop(erl_eval:new_bindings()).

0 comments on commit 975877d

Please sign in to comment.