Skip to content

Commit eae215e

Browse files
you got a loicense for that
1 parent 7f1a9d0 commit eae215e

18 files changed

+437
-284
lines changed

LICENSE

Lines changed: 373 additions & 201 deletions
Large diffs are not rendered by default.

src/application.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- This Source Code Form is subject to the terms of the Mozilla Public
2+
-- License, v. 2.0. If a copy of the MPL was not distributed with this
3+
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
15
local function dprint(...)
26
local args = {...}
37
for i=1, #args do

src/ast.lua

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
--[[
22
ast.lua - Generates a structure for use in preprocessing.
3-
4-
Copyright 2019 Adorable-Catgirl
5-
6-
Licensed under the Apache License, Version 2.0 (the "License");
7-
you may not use this file except in compliance with the License.
8-
You may obtain a copy of the License at
9-
10-
http://www.apache.org/licenses/LICENSE-2.0
11-
12-
Unless required by applicable law or agreed to in writing, software
13-
distributed under the License is distributed on an "AS IS" BASIS,
14-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
See the License for the specific language governing permissions and
16-
limitations under the License.
173
]]
4+
-- This Source Code Form is subject to the terms of the Mozilla Public
5+
-- License, v. 2.0. If a copy of the MPL was not distributed with this
6+
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
187

198
local function nextc(f, c)
209
c = c or 1

src/ast2.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
-- AST Generator v2: Belkan Boogaloo
22
-- Hopefully faster than v1
3+
-- This Source Code Form is subject to the terms of the Mozilla Public
4+
-- License, v. 2.0. If a copy of the MPL was not distributed with this
5+
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
36
local ast = {}
47
do
58
local ws = "\t "

src/cfg/directive_providers.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- This Source Code Form is subject to the terms of the Mozilla Public
2+
-- License, v. 2.0. If a copy of the MPL was not distributed with this
3+
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
15
local directive_paths = {
26
"/usr/share/luacomp/directives",
37
os.getenv("HOME").."/.local/share/luacomp/directives"

src/cfg/minifier_providers.lua

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
--[[
22
cfg/minifier_providers.lua - Provides minifier providers.
3-
4-
Copyright 2019 Adorable-Catgirl
5-
6-
Licensed under the Apache License, Version 2.0 (the "License");
7-
you may not use this file except in compliance with the License.
8-
You may obtain a copy of the License at
9-
10-
http://www.apache.org/licenses/LICENSE-2.0
11-
12-
Unless required by applicable law or agreed to in writing, software
13-
distributed under the License is distributed on an "AS IS" BASIS,
14-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
See the License for the specific language governing permissions and
16-
limitations under the License.
173
]]
184

5+
-- This Source Code Form is subject to the terms of the Mozilla Public
6+
-- License, v. 2.0. If a copy of the MPL was not distributed with this
7+
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
8+
199
local postproc_paths = {
2010
"/usr/share/luacomp/postproc",
2111
os.getenv("HOME").."/.local/share/luacomp/postproc"

src/directive_provider.lua

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
--[[
22
directive_provider.lua - Provides preprocessor directives
3-
4-
Copyright 2019 Adorable-Catgirl
5-
6-
Licensed under the Apache License, Version 2.0 (the "License");
7-
you may not use this file except in compliance with the License.
8-
You may obtain a copy of the License at
9-
10-
http://www.apache.org/licenses/LICENSE-2.0
11-
12-
Unless required by applicable law or agreed to in writing, software
13-
distributed under the License is distributed on an "AS IS" BASIS,
14-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
See the License for the specific language governing permissions and
16-
limitations under the License.
173
]]
4+
-- This Source Code Form is subject to the terms of the Mozilla Public
5+
-- License, v. 2.0. If a copy of the MPL was not distributed with this
6+
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
187

198
--#include "src/cfg/directive_providers.lua"
209
--#include "src/directives/define.lua"

src/directives/define.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- This Source Code Form is subject to the terms of the Mozilla Public
2+
-- License, v. 2.0. If a copy of the MPL was not distributed with this
3+
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
15
function directives.define(env, evar, val)
26
svar.set(evar, val)
37
return true

src/directives/error.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- This Source Code Form is subject to the terms of the Mozilla Public
2+
-- License, v. 2.0. If a copy of the MPL was not distributed with this
3+
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
15
function directives.error(env, err)
26
return false, err
37
end

src/directives/include.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- This Source Code Form is subject to the terms of the Mozilla Public
2+
-- License, v. 2.0. If a copy of the MPL was not distributed with this
3+
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
15
function directives.include(env, file)
26
local sr, err = stat.stat(file)
37
if not sr then return false, err end

0 commit comments

Comments
 (0)