bare-script 5.1.15__tar.gz → 5.1.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bare_script-5.1.15/src/bare_script.egg-info → bare_script-5.1.17}/PKG-INFO +4 -4
- {bare_script-5.1.15 → bare_script-5.1.17}/README.md +3 -3
- {bare_script-5.1.15 → bare_script-5.1.17}/pyproject.toml +1 -1
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/include.py +23 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/include_source.py +873 -840
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/library.py +56 -35
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/value.py +25 -3
- {bare_script-5.1.15 → bare_script-5.1.17/src/bare_script.egg-info}/PKG-INFO +4 -4
- {bare_script-5.1.15 → bare_script-5.1.17}/LICENSE +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/setup.cfg +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/setup.py +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/__init__.py +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/__main__.py +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/bare.py +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/options.py +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/runtime.py +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script/runtime_c.c +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script.egg-info/SOURCES.txt +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script.egg-info/dependency_links.txt +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script.egg-info/entry_points.txt +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script.egg-info/requires.txt +0 -0
- {bare_script-5.1.15 → bare_script-5.1.17}/src/bare_script.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bare-script
|
|
3
|
-
Version: 5.1.
|
|
3
|
+
Version: 5.1.17
|
|
4
4
|
Summary: BareScript; a lightweight scripting and expression language
|
|
5
5
|
Author-email: "Craig A. Hobbs" <craigahobbs@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -49,7 +49,7 @@ confident that BareScript will execute the same regardless of the underlying run
|
|
|
49
49
|
|
|
50
50
|
- [The BareScript Language](https://craigahobbs.github.io/bare-script-py/language/)
|
|
51
51
|
- [The BareScript Library](https://craigahobbs.github.io/bare-script-py/library/)
|
|
52
|
-
- [BareScript Creator](https://craigahobbs.github.io/bare-script-py/creator/)
|
|
52
|
+
- [The BareScript Creator](https://craigahobbs.github.io/bare-script-py/creator/)
|
|
53
53
|
- [API Documentation](https://craigahobbs.github.io/bare-script-py/)
|
|
54
54
|
- [Source code](https://github.com/craigahobbs/bare-script-py)
|
|
55
55
|
|
|
@@ -286,9 +286,9 @@ To run a MarkdownUp script (`.bare`) from this package, use `bare -m` (Markdown
|
|
|
286
286
|
[MarkdownUp web app](https://craigahobbs.github.io/markdown-up/).
|
|
287
287
|
|
|
288
288
|
|
|
289
|
-
## BareScript Creator
|
|
289
|
+
## The BareScript Creator
|
|
290
290
|
|
|
291
|
-
[BareScript Creator](https://craigahobbs.github.io/bare-script-py/creator/) generates a ready-to-build
|
|
291
|
+
[The BareScript Creator](https://craigahobbs.github.io/bare-script-py/creator/) generates a ready-to-build
|
|
292
292
|
BareScript project from a specification you write. Choose a project type (a MarkdownUp frontend
|
|
293
293
|
application, to start), fill in its form, and download the project as a `.tar.gz` archive with a
|
|
294
294
|
Makefile, a unit test suite, and the bare-script skill. In the project directory, `make run` has
|
|
@@ -23,7 +23,7 @@ confident that BareScript will execute the same regardless of the underlying run
|
|
|
23
23
|
|
|
24
24
|
- [The BareScript Language](https://craigahobbs.github.io/bare-script-py/language/)
|
|
25
25
|
- [The BareScript Library](https://craigahobbs.github.io/bare-script-py/library/)
|
|
26
|
-
- [BareScript Creator](https://craigahobbs.github.io/bare-script-py/creator/)
|
|
26
|
+
- [The BareScript Creator](https://craigahobbs.github.io/bare-script-py/creator/)
|
|
27
27
|
- [API Documentation](https://craigahobbs.github.io/bare-script-py/)
|
|
28
28
|
- [Source code](https://github.com/craigahobbs/bare-script-py)
|
|
29
29
|
|
|
@@ -260,9 +260,9 @@ To run a MarkdownUp script (`.bare`) from this package, use `bare -m` (Markdown
|
|
|
260
260
|
[MarkdownUp web app](https://craigahobbs.github.io/markdown-up/).
|
|
261
261
|
|
|
262
262
|
|
|
263
|
-
## BareScript Creator
|
|
263
|
+
## The BareScript Creator
|
|
264
264
|
|
|
265
|
-
[BareScript Creator](https://craigahobbs.github.io/bare-script-py/creator/) generates a ready-to-build
|
|
265
|
+
[The BareScript Creator](https://craigahobbs.github.io/bare-script-py/creator/) generates a ready-to-build
|
|
266
266
|
BareScript project from a specification you write. Choose a project type (a MarkdownUp frontend
|
|
267
267
|
application, to start), fill in its form, and download the project as a `.tar.gz` archive with a
|
|
268
268
|
Makefile, a unit test suite, and the bare-script skill. In the project directory, `make run` has
|
|
@@ -14,6 +14,7 @@ execute_script(
|
|
|
14
14
|
{
|
|
15
15
|
'statements': [
|
|
16
16
|
{'include': {'includes': [
|
|
17
|
+
{'url': 'barescriptLint.bare', 'system': True},
|
|
17
18
|
{'url': 'barescriptModel.bare', 'system': True},
|
|
18
19
|
{'url': 'base64.bare', 'system': True},
|
|
19
20
|
{'url': 'data.bare', 'system': True},
|
|
@@ -66,6 +67,28 @@ def _include_options():
|
|
|
66
67
|
return {'globals': _INCLUDE_GLOBALS}
|
|
67
68
|
|
|
68
69
|
|
|
70
|
+
#
|
|
71
|
+
# barescriptLint.bare
|
|
72
|
+
#
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def barescript_lint_unbound_globals(model, globals_=None):
|
|
76
|
+
"""
|
|
77
|
+
Compute the unbound global variables of a BareScript script or expression model - the global
|
|
78
|
+
variables and functions it uses that it does not define
|
|
79
|
+
|
|
80
|
+
:param model: The `BareScript model <https://craigahobbs.github.io/bare-script/model/#var.vName='BareScript'>`__ or
|
|
81
|
+
`expression model <https://craigahobbs.github.io/bare-script/model/#var.vName='Expression'>`__
|
|
82
|
+
:type model: dict
|
|
83
|
+
:param globals_: The bound global variables dict (name to value), such as the host's built-in functions
|
|
84
|
+
:type globals_: dict or None
|
|
85
|
+
:return: The sorted list of unbound global variable names
|
|
86
|
+
:rtype: list[str]
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
return _INCLUDE_GLOBALS['barescriptLintUnboundGlobals']([model, globals_], _include_options())
|
|
90
|
+
|
|
91
|
+
|
|
69
92
|
#
|
|
70
93
|
# barescriptModel.bare
|
|
71
94
|
#
|