Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tooling from relx to hex for publishing, add docs #189

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ src/luerl_scan.erl
src/luerl_parse.erl
comp_opts.mk
doc/epub/*
doc
ebin/*.beam
log
logs
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@
{apps, [luerl]}
]}.

{relx, [{release, {luerl, "1.2.2"},
[kernel,
stdlib,
sasl,
inets,
luerl]},

{dev_mode, false},
{include_erts, true},

{extended_start_script, true}]}.

{profiles, [
{test, [
{dist_node, [
Expand All @@ -29,3 +17,15 @@
{ct_opts, [{logdir, "logs"}]}
]}
]}.

{project_plugins, [rebar3_hex, rebar3_ex_doc]}.

{hex, [
{doc, #{provider => ex_doc}}
]}.

{ex_doc, [
{source_url, <<"https://github.com/rvirding/luerl">>},
{extras, [<<"README.md">>, <<"LICENSE">>]},
{main, <<"readme">>}
]}.
6 changes: 1 addition & 5 deletions src/luerl.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,5 @@
%% Project metadata
{licenses, ["Apache-2.0"]},
{links, [{"Github", "https://github.com/rvirding/luerl"}]},
%% This is used for hex packages.
{files, ["README.md", "LICENSE", "VERSION", "src", "doc", "ebin/luerl.app",
"include", "rebar.*", "*akefile",
"*.escript"]},
{exclude_files, ["priv/images/*"]}
{doc, "doc"}
]}.
2 changes: 2 additions & 0 deletions src/luerl_anno.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2019 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_app.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2021 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_comp.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2019 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_comp_cg.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_comp_env.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_comp_lint.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2019 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_comp_locf.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_comp_normalise.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2019 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_comp_peep.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2019 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_comp_vars.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_emul.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2023 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_heap.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2020-2024 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2024 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_basic.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2024 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_bit32.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2014-2018 Łukasz Biedrycki
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_debug.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2015-2020 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_io.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2020 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_math.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2020 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_os.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2024 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_os_date.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2023-2024 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_package.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2020 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_string.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2021 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_string_format.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2020 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_table.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2020 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 2 additions & 0 deletions src/luerl_lib_utf8.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2020 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
55 changes: 30 additions & 25 deletions src/luerl_parse.yrl
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
%% Copyright (c) 2013-2019 Robert Virding
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.

%% File : luerl_parse.yrl
%% Author : Robert Virding
%% Purpose : Parser for LUA 5.2.

%% The Grammar rules here are taken directly from the LUA 5.2
%% manual. Unfortunately it is not an LALR(1) grammar but I have
%% included a fix by Florian Weimer <[email protected]> which makes it
%% so, but it needs some after processing. Actually his fix was
%% unnecessarily complex and all that was needed was to change one
%% rule for statements.

Expect 2. %Suppress shift/reduce warning

Nonterminals
Expand Down Expand Up @@ -234,6 +209,36 @@ uminus -> '-' exp : {op,line('$1'),'-','$2'} .

Erlang code.

-moduledoc(false).

%% Copyright (c) 2013-2019 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.

%% File : luerl_parse.yrl
%% Author : Robert Virding
%% Purpose : Parser for LUA 5.2.

%% The Grammar rules here are taken directly from the LUA 5.2
%% manual. Unfortunately it is not an LALR(1) grammar but I have
%% included a fix by Florian Weimer <[email protected]> which makes it
%% so, but it needs some after processing. Actually his fix was
%% unnecessarily complex and all that was needed was to change one
%% rule for statements.


-export([chunk/1]).

%% chunk(Tokens) -> FunctionDef | Error.
Expand Down
41 changes: 23 additions & 18 deletions src/luerl_scan.xrl
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
%% Copyright (c) 2013-2023 Robert Virding
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.

%% File : luerl_scan.xrl
%% Author : Robert Virding
%% Purpose : Token definitions for LUA.

Definitions.

D = [0-9]
Expand Down Expand Up @@ -138,6 +120,29 @@ Rules.

Erlang code.

-moduledoc(false).

%% Copyright (c) 2013-2023 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.

%% File : luerl_scan.xrl
%% Author : Robert Virding
%% Purpose : Token definitions for LUA.


-export([is_keyword/1]).
-export([string_chars/1,chars/1]).

Expand Down
2 changes: 2 additions & 0 deletions src/luerl_sup.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013-2021 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion src/luerl_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
%% limitations under the License.

%% File : luerl_util.erl
%% Purpose : Utility functions for Luer.
%% Purpose : Utility functions for Luerl.

-module(luerl_util).

Expand Down
2 changes: 2 additions & 0 deletions src/ttdict.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%% Copyright (c) 2013 Robert Virding
%%
%% @private
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
Expand Down
Loading
Loading