-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCOPYING
More file actions
61 lines (47 loc) · 2.34 KB
/
Copy pathCOPYING
File metadata and controls
61 lines (47 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
STruC++ Licensing
=================
STruC++ uses a split licensing model inspired by the GCC compiler, designed
to keep the compiler open source while allowing users to compile proprietary
PLC programs.
Compiler (GPLv3)
----------------
The STruC++ compiler itself -- including the lexer, parser, AST builder,
semantic analyzer, type checker, code generator, CLI, and library system --
is licensed under the GNU General Public License version 3 or later.
Files: src/*.ts, src/frontend/, src/semantic/, src/backend/,
src/library/, src/testing/, src/ir/
License: GPL-3.0-or-later (see LICENSE)
This means any modifications to the compiler must be released under the
same license. However, merely using the compiler to compile your programs
does NOT make your programs GPL.
Runtime Library (GPLv3 + Runtime Library Exception)
---------------------------------------------------
The C++ runtime headers, type wrappers, and standard function block library
are licensed under GPLv3 with the STruC++ Runtime Library Exception. This
exception allows the runtime code to be included in compiled output without
requiring that output to be GPL-licensed.
Files: src/runtime/include/*.hpp, src/runtime/repl/iec_repl.hpp,
src/runtime/test/iec_test.hpp, libs/*.stlib
License: GPL-3.0-or-later WITH STruCpp-runtime-exception
(see LICENSE and COPYING.RUNTIME)
In practice: when you compile a Structured Text program with STruC++, the
resulting C++ code includes runtime headers and links against runtime
library code. The Runtime Library Exception ensures you can distribute your
compiled PLC programs under any license you choose.
Third-Party Code
----------------
The isocline line-editing library used in the REPL is licensed under the
MIT License. See the individual file headers in src/runtime/repl/ for
details.
Files: src/runtime/repl/*.c, src/runtime/repl/*.h
(except iec_repl.hpp)
License: MIT (Copyright (c) 2021 Daan Leijen)
Summary
-------
Component | License
----------------------------|----------------------------------------
Compiler (src/*.ts, etc.) | GPL-3.0-or-later
Runtime headers (*.hpp) | GPL-3.0-or-later + Runtime Exception
Standard libraries (*.stlib)| GPL-3.0-or-later + Runtime Exception
REPL / isocline | MIT (third-party)
Your compiled programs | Your choice