enlang 1.0.0__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.
Files changed (152) hide show
  1. enlang-1.0.0/LICENSE +21 -0
  2. enlang-1.0.0/MANIFEST.in +10 -0
  3. enlang-1.0.0/PKG-INFO +167 -0
  4. enlang-1.0.0/README.md +124 -0
  5. enlang-1.0.0/enlang/__init__.py +6 -0
  6. enlang-1.0.0/enlang/__main__.py +6 -0
  7. enlang-1.0.0/enlang.egg-info/PKG-INFO +167 -0
  8. enlang-1.0.0/enlang.egg-info/SOURCES.txt +150 -0
  9. enlang-1.0.0/enlang.egg-info/dependency_links.txt +1 -0
  10. enlang-1.0.0/enlang.egg-info/entry_points.txt +3 -0
  11. enlang-1.0.0/enlang.egg-info/top_level.txt +6 -0
  12. enlang-1.0.0/enlg/__init__.py +3 -0
  13. enlang-1.0.0/enlg/__main__.py +6 -0
  14. enlang-1.0.0/enlg/ast/nodes.py +190 -0
  15. enlang-1.0.0/enlg/cli.py +301 -0
  16. enlang-1.0.0/enlg/compiler/cir.py +73 -0
  17. enlang-1.0.0/enlg/compiler/generator.py +318 -0
  18. enlang-1.0.0/enlg/compiler/py_transpiler.py +296 -0
  19. enlang-1.0.0/enlg/core/intents.py +126 -0
  20. enlang-1.0.0/enlg/diagnostics/diagnostics.py +56 -0
  21. enlang-1.0.0/enlg/diagnostics/error_codes.py +35 -0
  22. enlang-1.0.0/enlg/lexer/lexer.py +106 -0
  23. enlang-1.0.0/enlg/lexer/tokens.py +27 -0
  24. enlang-1.0.0/enlg/parser/block_parser.py +79 -0
  25. enlang-1.0.0/enlg/parser/discovery.py +77 -0
  26. enlang-1.0.0/enlg/parser/expressions.py +359 -0
  27. enlang-1.0.0/enlg/parser/slot_parser.py +403 -0
  28. enlang-1.0.0/enlg/runtime/builtins.py +44 -0
  29. enlang-1.0.0/enlg/runtime/domain_handlers/__init__.py +19 -0
  30. enlang-1.0.0/enlg/runtime/domain_handlers/cloud_handlers.py +24 -0
  31. enlang-1.0.0/enlg/runtime/domain_handlers/dl_handlers.py +147 -0
  32. enlang-1.0.0/enlg/runtime/domain_handlers/ml_handlers.py +439 -0
  33. enlang-1.0.0/enlg/runtime/domain_handlers/sec_handlers.py +38 -0
  34. enlang-1.0.0/enlg/runtime/environment.py +51 -0
  35. enlang-1.0.0/enlg/runtime/vm.py +419 -0
  36. enlang-1.0.0/enlg/stdlib/__init__.py +1 -0
  37. enlang-1.0.0/enlg/stdlib/cloud.py +4 -0
  38. enlang-1.0.0/enlg/stdlib/cyber.py +4 -0
  39. enlang-1.0.0/enlg/stdlib/data.py +32 -0
  40. enlang-1.0.0/enlg/stdlib/dl.py +41 -0
  41. enlang-1.0.0/enlg/stdlib/ml.py +113 -0
  42. enlang-1.0.0/enlg/stdlib/std.py +128 -0
  43. enlang-1.0.0/enlg/tests/test_block_parser.py +76 -0
  44. enlang-1.0.0/enlg/tests/test_cli.py +42 -0
  45. enlang-1.0.0/enlg/tests/test_diagnostics.py +57 -0
  46. enlang-1.0.0/enlg/tests/test_discovery.py +56 -0
  47. enlang-1.0.0/enlg/tests/test_domain_intents.py +44 -0
  48. enlang-1.0.0/enlg/tests/test_domains.py +45 -0
  49. enlang-1.0.0/enlg/tests/test_environment.py +46 -0
  50. enlang-1.0.0/enlg/tests/test_generator.py +211 -0
  51. enlang-1.0.0/enlg/tests/test_lexer.py +48 -0
  52. enlang-1.0.0/enlg/tests/test_parser.py +173 -0
  53. enlang-1.0.0/enlg/tests/test_vm.py +145 -0
  54. enlang-1.0.0/enlgd/__init__.py +6 -0
  55. enlang-1.0.0/enlgd/ast_nodes.py +56 -0
  56. enlang-1.0.0/enlgd/compiler.py +33 -0
  57. enlang-1.0.0/enlgd/emitter.py +66 -0
  58. enlang-1.0.0/enlgd/lexer.py +193 -0
  59. enlang-1.0.0/enlgd/parser.py +471 -0
  60. enlang-1.0.0/enlgd/tokens.py +185 -0
  61. enlang-1.0.0/enlgf/__init__.py +6 -0
  62. enlang-1.0.0/enlgf/ast_nodes.py +40 -0
  63. enlang-1.0.0/enlgf/emitter.py +86 -0
  64. enlang-1.0.0/enlgf/lexer.py +179 -0
  65. enlang-1.0.0/enlgf/parser.py +452 -0
  66. enlang-1.0.0/enlgf/server.py +213 -0
  67. enlang-1.0.0/enlgf/tokens.py +337 -0
  68. enlang-1.0.0/enlgm/__init__.py +5 -0
  69. enlang-1.0.0/enlgm/ast_nodes.py +232 -0
  70. enlang-1.0.0/enlgm/compiler.py +42 -0
  71. enlang-1.0.0/enlgm/emitter.py +590 -0
  72. enlang-1.0.0/enlgm/lexer.py +166 -0
  73. enlang-1.0.0/enlgm/parser.py +711 -0
  74. enlang-1.0.0/enlgm/tests/test_enlgm.py +239 -0
  75. enlang-1.0.0/enlgm/tokens.py +193 -0
  76. enlang-1.0.0/enlgs/__init__.py +6 -0
  77. enlang-1.0.0/enlgs/ast_nodes.py +351 -0
  78. enlang-1.0.0/enlgs/compiler.py +33 -0
  79. enlang-1.0.0/enlgs/emitter.py +533 -0
  80. enlang-1.0.0/enlgs/lexer.py +187 -0
  81. enlang-1.0.0/enlgs/parser.py +941 -0
  82. enlang-1.0.0/enlgs/tests/test_natural_syntax.py +120 -0
  83. enlang-1.0.0/enlgs/tests/test_universe_syntax.py +176 -0
  84. enlang-1.0.0/enlgs/tokens.py +296 -0
  85. enlang-1.0.0/pyproject.toml +26 -0
  86. enlang-1.0.0/setup.cfg +4 -0
  87. enlang-1.0.0/setup.py +41 -0
  88. enlang-1.0.0/vscode-enlang/README.md +72 -0
  89. enlang-1.0.0/vscode-enlang/enlang-1.0.0.vsix +0 -0
  90. enlang-1.0.0/vscode-enlang/enlang-1.1.0.vsix +0 -0
  91. enlang-1.0.0/vscode-enlang/enlang-1.1.1.vsix +0 -0
  92. enlang-1.0.0/vscode-enlang/enlang-1.1.2.vsix +0 -0
  93. enlang-1.0.0/vscode-enlang/enlang-1.2.0.vsix +0 -0
  94. enlang-1.0.0/vscode-enlang/enlang-1.2.1.vsix +0 -0
  95. enlang-1.0.0/vscode-enlang/enlang-1.2.2.vsix +0 -0
  96. enlang-1.0.0/vscode-enlang/enlang-1.2.3.vsix +0 -0
  97. enlang-1.0.0/vscode-enlang/enlang-1.2.4.vsix +0 -0
  98. enlang-1.0.0/vscode-enlang/enlang-1.2.5.vsix +0 -0
  99. enlang-1.0.0/vscode-enlang/enlang-1.2.6.vsix +0 -0
  100. enlang-1.0.0/vscode-enlang/enlang-1.2.7.vsix +0 -0
  101. enlang-1.0.0/vscode-enlang/enlang-1.2.8.vsix +0 -0
  102. enlang-1.0.0/vscode-enlang/enlang-1.2.9.vsix +0 -0
  103. enlang-1.0.0/vscode-enlang/enlang-1.3.0.vsix +0 -0
  104. enlang-1.0.0/vscode-enlang/enlang-1.3.1.vsix +0 -0
  105. enlang-1.0.0/vscode-enlang/enlang-1.3.2.vsix +0 -0
  106. enlang-1.0.0/vscode-enlang/enlang-1.3.3.vsix +0 -0
  107. enlang-1.0.0/vscode-enlang/enlang-1.3.4.vsix +0 -0
  108. enlang-1.0.0/vscode-enlang/enlang-1.3.5.vsix +0 -0
  109. enlang-1.0.0/vscode-enlang/enlang-1.3.6.vsix +0 -0
  110. enlang-1.0.0/vscode-enlang/enlang-1.3.7.vsix +0 -0
  111. enlang-1.0.0/vscode-enlang/enlang-1.3.8.vsix +0 -0
  112. enlang-1.0.0/vscode-enlang/enlang-1.3.9.vsix +0 -0
  113. enlang-1.0.0/vscode-enlang/enlang-1.4.0.vsix +0 -0
  114. enlang-1.0.0/vscode-enlang/enlang-1.4.1.vsix +0 -0
  115. enlang-1.0.0/vscode-enlang/enlang-1.4.2.vsix +0 -0
  116. enlang-1.0.0/vscode-enlang/enlang-1.4.3.vsix +0 -0
  117. enlang-1.0.0/vscode-enlang/enlang-1.4.4.vsix +0 -0
  118. enlang-1.0.0/vscode-enlang/enlang-1.4.5.vsix +0 -0
  119. enlang-1.0.0/vscode-enlang/enlang-1.4.6.vsix +0 -0
  120. enlang-1.0.0/vscode-enlang/enlang-1.4.7.vsix +0 -0
  121. enlang-1.0.0/vscode-enlang/enlang-2.0.0.vsix +0 -0
  122. enlang-1.0.0/vscode-enlang/enlang-2.1.0.vsix +0 -0
  123. enlang-1.0.0/vscode-enlang/enlang-2.1.1.vsix +0 -0
  124. enlang-1.0.0/vscode-enlang/enlang-2.1.2.vsix +0 -0
  125. enlang-1.0.0/vscode-enlang/enlang-2.1.3.vsix +0 -0
  126. enlang-1.0.0/vscode-enlang/enlang-2.1.4.vsix +0 -0
  127. enlang-1.0.0/vscode-enlang/enlang-2.1.5.vsix +0 -0
  128. enlang-1.0.0/vscode-enlang/enlang-2.1.6.vsix +0 -0
  129. enlang-1.0.0/vscode-enlang/enlang-2.1.7.vsix +0 -0
  130. enlang-1.0.0/vscode-enlang/enlang-2.1.8.vsix +0 -0
  131. enlang-1.0.0/vscode-enlang/enlang-2.1.9.vsix +0 -0
  132. enlang-1.0.0/vscode-enlang/enlang-2.2.0.vsix +0 -0
  133. enlang-1.0.0/vscode-enlang/enlang-2.2.1.vsix +0 -0
  134. enlang-1.0.0/vscode-enlang/enlang-2.2.2.vsix +0 -0
  135. enlang-1.0.0/vscode-enlang/enlang-2.2.3.vsix +0 -0
  136. enlang-1.0.0/vscode-enlang/enlang-2.2.4.vsix +0 -0
  137. enlang-1.0.0/vscode-enlang/enlang-2.2.5.vsix +0 -0
  138. enlang-1.0.0/vscode-enlang/enlang-2.2.6.vsix +0 -0
  139. enlang-1.0.0/vscode-enlang/enlang-2.2.7.vsix +0 -0
  140. enlang-1.0.0/vscode-enlang/enlang-2.2.8.vsix +0 -0
  141. enlang-1.0.0/vscode-enlang/enlang-2.3.0.vsix +0 -0
  142. enlang-1.0.0/vscode-enlang/enlang-2.3.1.vsix +0 -0
  143. enlang-1.0.0/vscode-enlang/enlang-2.3.2.vsix +0 -0
  144. enlang-1.0.0/vscode-enlang/enlang-2.4.0.vsix +0 -0
  145. enlang-1.0.0/vscode-enlang/enlang-2.4.1.vsix +0 -0
  146. enlang-1.0.0/vscode-enlang/enlang-2.5.0.vsix +0 -0
  147. enlang-1.0.0/vscode-enlang/enlang-2.5.1.vsix +0 -0
  148. enlang-1.0.0/vscode-enlang/extension.js +236 -0
  149. enlang-1.0.0/vscode-enlang/language-configuration.json +29 -0
  150. enlang-1.0.0/vscode-enlang/package.json +172 -0
  151. enlang-1.0.0/vscode-enlang/snippets/enlang.code-snippets +96 -0
  152. enlang-1.0.0/vscode-enlang/syntaxes/enlang.tmLanguage.json +135 -0
enlang-1.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Spandan Prayas Patra
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ include README.md
2
+ include LICENSE
3
+ include pyproject.toml
4
+ recursive-include enlg *.py *.md
5
+ recursive-include enlgf *.py *.md *.html
6
+ recursive-include enlgd *.py *.md *.css
7
+ recursive-include enlgs *.py *.md *.js
8
+ recursive-include enlgm *.py *.md *.dart
9
+ recursive-include enlang *.py *.md
10
+ recursive-include vscode-enlang *
enlang-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,167 @@
1
+ Metadata-Version: 2.4
2
+ Name: enlang
3
+ Version: 1.0.0
4
+ Summary: The Universal Natural English Programming Language & Full-Stack Engine
5
+ Home-page: https://github.com/Aero99op/enlang
6
+ Author: Spandan Prayas Patra
7
+ Author-email: Spandan Prayas Patra <spandanpatra1234@gmail.com>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2026 Spandan Prayas Patra
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+
30
+ Classifier: Development Status :: 5 - Production/Stable
31
+ Classifier: Intended Audience :: Developers
32
+ Classifier: Programming Language :: Python :: 3
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Classifier: Topic :: Software Development :: Compilers
36
+ Requires-Python: >=3.8
37
+ Description-Content-Type: text/markdown
38
+ License-File: LICENSE
39
+ Dynamic: author
40
+ Dynamic: home-page
41
+ Dynamic: license-file
42
+ Dynamic: requires-python
43
+
44
+ # EnLang — The Universal Natural English Programming Language & Full-Stack Engine
45
+ ### *Build Full-Stack Web Apps, Mobile UIs, Logic & 3D Visuals in Pure Natural English*
46
+
47
+ [![Version](https://img.shields.io/badge/version-1.0.0--Stable-indigo.svg)](https://pypi.org/project/enlang/)
48
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
49
+ [![PyPI](https://img.shields.io/pypi/v/enlang.svg)](https://pypi.org/project/enlang/)
50
+
51
+ Created and Authored by **Spandan Prayas Patra**.
52
+
53
+ ---
54
+
55
+ ## 🌟 Overview
56
+
57
+ **EnLang** is a deterministic, human-readable programming language and transpilation engine that converts natural English into clean, production-grade native code targets:
58
+
59
+ - **`.enlg`** ➔ Core Backend Logic & Algorithms (Python 3 / Bytecode VM)
60
+ - **`.enlgf`** ➔ Structural Frontend Web Markup (HTML5)
61
+ - **`.enlgd`** ➔ Responsive Design & Aesthetics (CSS3)
62
+ - **`.enlgs`** ➔ Client-Side Reactive Scripting & DOM Logic (Vanilla JavaScript ES6+)
63
+ - **`.enlgm`** ➔ Mobile Applications & Screens (Flutter / Dart)
64
+
65
+ ---
66
+
67
+ ## 🚀 Official Installation
68
+
69
+ Install EnLang globally on your system using `pip`:
70
+
71
+ ```bash
72
+ pip install enlang
73
+ ```
74
+
75
+ ---
76
+
77
+ ## 🛠️ CLI Command Reference
78
+
79
+ Once installed, use the `enlang` (or `enlg`) command anywhere in your terminal:
80
+
81
+ ### 1️⃣ Execution & Live Dev Server
82
+ ```bash
83
+ # Run any source file with auto-detection (.enlg, .enlgf, .enlgs, .enlgm, .html, .js, .py):
84
+ enlang run tournament_app/tournament.enlgf
85
+
86
+ # Run on a custom port:
87
+ enlang run index.enlgf -p 3000
88
+ ```
89
+
90
+ ### 2️⃣ Compilation & Production Build
91
+ ```bash
92
+ enlang build page.enlgf # Bundles HTML5, CSS3, and JS into page.html
93
+ enlang build style.enlgd # Compiles to modern CSS3 (style.css)
94
+ enlang build script.enlgs # Compiles to pure Vanilla JavaScript (script.js)
95
+ enlang build app.enlg # Transpiles to clean Python (app.py)
96
+ enlang build app.enlgm # Compiles to Flutter/Dart (app.dart)
97
+ ```
98
+
99
+ ### 3️⃣ Version & Package Management
100
+ ```bash
101
+ # Check installed version and check PyPI for updates:
102
+ enlang check -v
103
+
104
+ # Update enlang to latest release:
105
+ enlang update -v latest
106
+
107
+ # Install a specific version co-existing alongside current version:
108
+ enlang install -v 1.0.0
109
+
110
+ # Replace current active installation with a specific version:
111
+ enlang replace -v 1.0.0
112
+
113
+ # List all co-existing installed versions:
114
+ enlang list -v
115
+
116
+ # Switch active default version:
117
+ enlang switch -v 1.0.0
118
+ ```
119
+
120
+ ### 4️⃣ Interactive REPL Shell
121
+ ```bash
122
+ enlang repl
123
+ ```
124
+
125
+ ---
126
+
127
+ ## 🎨 Sample Syntax
128
+
129
+ ### 🔹 1. Markup (`index.enlgf`)
130
+ ```enlgf
131
+ page:
132
+ head:
133
+ title "Vortex Esports"
134
+ body:
135
+ header class "main-navbar":
136
+ h1 "VORTEX ESPORTS"
137
+ button "LOG IN" id "btn-login"
138
+ ```
139
+
140
+ ### 🔹 2. Design (`style.enlgd`)
141
+ ```enlgd
142
+ .main-navbar:
143
+ background "rgba(15, 23, 42, 0.8)"
144
+ backdrop-filter "blur(12px)"
145
+ padding "16px 32px"
146
+ display "flex"
147
+ justify-content "space-between"
148
+ ```
149
+
150
+ ### 🔹 3. Client Scripting (`app.enlgs`)
151
+ ```enlgs
152
+ in script:
153
+ create score as 0
154
+
155
+ when "btn-login" is clicked:
156
+ put { user: "Kiryu", score: 50 } into userRecord
157
+ add "Kiryu" to activePlayersList
158
+ set text of "user-badge" to "Welcome, Kiryu!"
159
+ add class "active" to "user-badge"
160
+ after 3 seconds:
161
+ hide element "welcome-banner"
162
+ ```
163
+
164
+ ---
165
+
166
+ ## 📄 License
167
+ MIT License. Copyright (c) 2026 Spandan Prayas Patra.
enlang-1.0.0/README.md ADDED
@@ -0,0 +1,124 @@
1
+ # EnLang — The Universal Natural English Programming Language & Full-Stack Engine
2
+ ### *Build Full-Stack Web Apps, Mobile UIs, Logic & 3D Visuals in Pure Natural English*
3
+
4
+ [![Version](https://img.shields.io/badge/version-1.0.0--Stable-indigo.svg)](https://pypi.org/project/enlang/)
5
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
+ [![PyPI](https://img.shields.io/pypi/v/enlang.svg)](https://pypi.org/project/enlang/)
7
+
8
+ Created and Authored by **Spandan Prayas Patra**.
9
+
10
+ ---
11
+
12
+ ## 🌟 Overview
13
+
14
+ **EnLang** is a deterministic, human-readable programming language and transpilation engine that converts natural English into clean, production-grade native code targets:
15
+
16
+ - **`.enlg`** ➔ Core Backend Logic & Algorithms (Python 3 / Bytecode VM)
17
+ - **`.enlgf`** ➔ Structural Frontend Web Markup (HTML5)
18
+ - **`.enlgd`** ➔ Responsive Design & Aesthetics (CSS3)
19
+ - **`.enlgs`** ➔ Client-Side Reactive Scripting & DOM Logic (Vanilla JavaScript ES6+)
20
+ - **`.enlgm`** ➔ Mobile Applications & Screens (Flutter / Dart)
21
+
22
+ ---
23
+
24
+ ## 🚀 Official Installation
25
+
26
+ Install EnLang globally on your system using `pip`:
27
+
28
+ ```bash
29
+ pip install enlang
30
+ ```
31
+
32
+ ---
33
+
34
+ ## 🛠️ CLI Command Reference
35
+
36
+ Once installed, use the `enlang` (or `enlg`) command anywhere in your terminal:
37
+
38
+ ### 1️⃣ Execution & Live Dev Server
39
+ ```bash
40
+ # Run any source file with auto-detection (.enlg, .enlgf, .enlgs, .enlgm, .html, .js, .py):
41
+ enlang run tournament_app/tournament.enlgf
42
+
43
+ # Run on a custom port:
44
+ enlang run index.enlgf -p 3000
45
+ ```
46
+
47
+ ### 2️⃣ Compilation & Production Build
48
+ ```bash
49
+ enlang build page.enlgf # Bundles HTML5, CSS3, and JS into page.html
50
+ enlang build style.enlgd # Compiles to modern CSS3 (style.css)
51
+ enlang build script.enlgs # Compiles to pure Vanilla JavaScript (script.js)
52
+ enlang build app.enlg # Transpiles to clean Python (app.py)
53
+ enlang build app.enlgm # Compiles to Flutter/Dart (app.dart)
54
+ ```
55
+
56
+ ### 3️⃣ Version & Package Management
57
+ ```bash
58
+ # Check installed version and check PyPI for updates:
59
+ enlang check -v
60
+
61
+ # Update enlang to latest release:
62
+ enlang update -v latest
63
+
64
+ # Install a specific version co-existing alongside current version:
65
+ enlang install -v 1.0.0
66
+
67
+ # Replace current active installation with a specific version:
68
+ enlang replace -v 1.0.0
69
+
70
+ # List all co-existing installed versions:
71
+ enlang list -v
72
+
73
+ # Switch active default version:
74
+ enlang switch -v 1.0.0
75
+ ```
76
+
77
+ ### 4️⃣ Interactive REPL Shell
78
+ ```bash
79
+ enlang repl
80
+ ```
81
+
82
+ ---
83
+
84
+ ## 🎨 Sample Syntax
85
+
86
+ ### 🔹 1. Markup (`index.enlgf`)
87
+ ```enlgf
88
+ page:
89
+ head:
90
+ title "Vortex Esports"
91
+ body:
92
+ header class "main-navbar":
93
+ h1 "VORTEX ESPORTS"
94
+ button "LOG IN" id "btn-login"
95
+ ```
96
+
97
+ ### 🔹 2. Design (`style.enlgd`)
98
+ ```enlgd
99
+ .main-navbar:
100
+ background "rgba(15, 23, 42, 0.8)"
101
+ backdrop-filter "blur(12px)"
102
+ padding "16px 32px"
103
+ display "flex"
104
+ justify-content "space-between"
105
+ ```
106
+
107
+ ### 🔹 3. Client Scripting (`app.enlgs`)
108
+ ```enlgs
109
+ in script:
110
+ create score as 0
111
+
112
+ when "btn-login" is clicked:
113
+ put { user: "Kiryu", score: 50 } into userRecord
114
+ add "Kiryu" to activePlayersList
115
+ set text of "user-badge" to "Welcome, Kiryu!"
116
+ add class "active" to "user-badge"
117
+ after 3 seconds:
118
+ hide element "welcome-banner"
119
+ ```
120
+
121
+ ---
122
+
123
+ ## 📄 License
124
+ MIT License. Copyright (c) 2026 Spandan Prayas Patra.
@@ -0,0 +1,6 @@
1
+ """enlang Main Package Alias.
2
+
3
+ Redirects to enlg CLI and runtime pipeline.
4
+ """
5
+
6
+ from enlg.cli import main, run_source, run_file
@@ -0,0 +1,6 @@
1
+ """enlang Main Entry Point for python -m enlang."""
2
+
3
+ from enlg.cli import main
4
+
5
+ if __name__ == "__main__":
6
+ main()
@@ -0,0 +1,167 @@
1
+ Metadata-Version: 2.4
2
+ Name: enlang
3
+ Version: 1.0.0
4
+ Summary: The Universal Natural English Programming Language & Full-Stack Engine
5
+ Home-page: https://github.com/Aero99op/enlang
6
+ Author: Spandan Prayas Patra
7
+ Author-email: Spandan Prayas Patra <spandanpatra1234@gmail.com>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2026 Spandan Prayas Patra
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+
30
+ Classifier: Development Status :: 5 - Production/Stable
31
+ Classifier: Intended Audience :: Developers
32
+ Classifier: Programming Language :: Python :: 3
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Classifier: Topic :: Software Development :: Compilers
36
+ Requires-Python: >=3.8
37
+ Description-Content-Type: text/markdown
38
+ License-File: LICENSE
39
+ Dynamic: author
40
+ Dynamic: home-page
41
+ Dynamic: license-file
42
+ Dynamic: requires-python
43
+
44
+ # EnLang — The Universal Natural English Programming Language & Full-Stack Engine
45
+ ### *Build Full-Stack Web Apps, Mobile UIs, Logic & 3D Visuals in Pure Natural English*
46
+
47
+ [![Version](https://img.shields.io/badge/version-1.0.0--Stable-indigo.svg)](https://pypi.org/project/enlang/)
48
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
49
+ [![PyPI](https://img.shields.io/pypi/v/enlang.svg)](https://pypi.org/project/enlang/)
50
+
51
+ Created and Authored by **Spandan Prayas Patra**.
52
+
53
+ ---
54
+
55
+ ## 🌟 Overview
56
+
57
+ **EnLang** is a deterministic, human-readable programming language and transpilation engine that converts natural English into clean, production-grade native code targets:
58
+
59
+ - **`.enlg`** ➔ Core Backend Logic & Algorithms (Python 3 / Bytecode VM)
60
+ - **`.enlgf`** ➔ Structural Frontend Web Markup (HTML5)
61
+ - **`.enlgd`** ➔ Responsive Design & Aesthetics (CSS3)
62
+ - **`.enlgs`** ➔ Client-Side Reactive Scripting & DOM Logic (Vanilla JavaScript ES6+)
63
+ - **`.enlgm`** ➔ Mobile Applications & Screens (Flutter / Dart)
64
+
65
+ ---
66
+
67
+ ## 🚀 Official Installation
68
+
69
+ Install EnLang globally on your system using `pip`:
70
+
71
+ ```bash
72
+ pip install enlang
73
+ ```
74
+
75
+ ---
76
+
77
+ ## 🛠️ CLI Command Reference
78
+
79
+ Once installed, use the `enlang` (or `enlg`) command anywhere in your terminal:
80
+
81
+ ### 1️⃣ Execution & Live Dev Server
82
+ ```bash
83
+ # Run any source file with auto-detection (.enlg, .enlgf, .enlgs, .enlgm, .html, .js, .py):
84
+ enlang run tournament_app/tournament.enlgf
85
+
86
+ # Run on a custom port:
87
+ enlang run index.enlgf -p 3000
88
+ ```
89
+
90
+ ### 2️⃣ Compilation & Production Build
91
+ ```bash
92
+ enlang build page.enlgf # Bundles HTML5, CSS3, and JS into page.html
93
+ enlang build style.enlgd # Compiles to modern CSS3 (style.css)
94
+ enlang build script.enlgs # Compiles to pure Vanilla JavaScript (script.js)
95
+ enlang build app.enlg # Transpiles to clean Python (app.py)
96
+ enlang build app.enlgm # Compiles to Flutter/Dart (app.dart)
97
+ ```
98
+
99
+ ### 3️⃣ Version & Package Management
100
+ ```bash
101
+ # Check installed version and check PyPI for updates:
102
+ enlang check -v
103
+
104
+ # Update enlang to latest release:
105
+ enlang update -v latest
106
+
107
+ # Install a specific version co-existing alongside current version:
108
+ enlang install -v 1.0.0
109
+
110
+ # Replace current active installation with a specific version:
111
+ enlang replace -v 1.0.0
112
+
113
+ # List all co-existing installed versions:
114
+ enlang list -v
115
+
116
+ # Switch active default version:
117
+ enlang switch -v 1.0.0
118
+ ```
119
+
120
+ ### 4️⃣ Interactive REPL Shell
121
+ ```bash
122
+ enlang repl
123
+ ```
124
+
125
+ ---
126
+
127
+ ## 🎨 Sample Syntax
128
+
129
+ ### 🔹 1. Markup (`index.enlgf`)
130
+ ```enlgf
131
+ page:
132
+ head:
133
+ title "Vortex Esports"
134
+ body:
135
+ header class "main-navbar":
136
+ h1 "VORTEX ESPORTS"
137
+ button "LOG IN" id "btn-login"
138
+ ```
139
+
140
+ ### 🔹 2. Design (`style.enlgd`)
141
+ ```enlgd
142
+ .main-navbar:
143
+ background "rgba(15, 23, 42, 0.8)"
144
+ backdrop-filter "blur(12px)"
145
+ padding "16px 32px"
146
+ display "flex"
147
+ justify-content "space-between"
148
+ ```
149
+
150
+ ### 🔹 3. Client Scripting (`app.enlgs`)
151
+ ```enlgs
152
+ in script:
153
+ create score as 0
154
+
155
+ when "btn-login" is clicked:
156
+ put { user: "Kiryu", score: 50 } into userRecord
157
+ add "Kiryu" to activePlayersList
158
+ set text of "user-badge" to "Welcome, Kiryu!"
159
+ add class "active" to "user-badge"
160
+ after 3 seconds:
161
+ hide element "welcome-banner"
162
+ ```
163
+
164
+ ---
165
+
166
+ ## 📄 License
167
+ MIT License. Copyright (c) 2026 Spandan Prayas Patra.
@@ -0,0 +1,150 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.py
6
+ enlang/__init__.py
7
+ enlang/__main__.py
8
+ enlang.egg-info/PKG-INFO
9
+ enlang.egg-info/SOURCES.txt
10
+ enlang.egg-info/dependency_links.txt
11
+ enlang.egg-info/entry_points.txt
12
+ enlang.egg-info/top_level.txt
13
+ enlg/__init__.py
14
+ enlg/__main__.py
15
+ enlg/cli.py
16
+ enlg/ast/nodes.py
17
+ enlg/compiler/cir.py
18
+ enlg/compiler/generator.py
19
+ enlg/compiler/py_transpiler.py
20
+ enlg/core/intents.py
21
+ enlg/diagnostics/diagnostics.py
22
+ enlg/diagnostics/error_codes.py
23
+ enlg/lexer/lexer.py
24
+ enlg/lexer/tokens.py
25
+ enlg/parser/block_parser.py
26
+ enlg/parser/discovery.py
27
+ enlg/parser/expressions.py
28
+ enlg/parser/slot_parser.py
29
+ enlg/runtime/builtins.py
30
+ enlg/runtime/environment.py
31
+ enlg/runtime/vm.py
32
+ enlg/runtime/domain_handlers/__init__.py
33
+ enlg/runtime/domain_handlers/cloud_handlers.py
34
+ enlg/runtime/domain_handlers/dl_handlers.py
35
+ enlg/runtime/domain_handlers/ml_handlers.py
36
+ enlg/runtime/domain_handlers/sec_handlers.py
37
+ enlg/stdlib/__init__.py
38
+ enlg/stdlib/cloud.py
39
+ enlg/stdlib/cyber.py
40
+ enlg/stdlib/data.py
41
+ enlg/stdlib/dl.py
42
+ enlg/stdlib/ml.py
43
+ enlg/stdlib/std.py
44
+ enlg/tests/test_block_parser.py
45
+ enlg/tests/test_cli.py
46
+ enlg/tests/test_diagnostics.py
47
+ enlg/tests/test_discovery.py
48
+ enlg/tests/test_domain_intents.py
49
+ enlg/tests/test_domains.py
50
+ enlg/tests/test_environment.py
51
+ enlg/tests/test_generator.py
52
+ enlg/tests/test_lexer.py
53
+ enlg/tests/test_parser.py
54
+ enlg/tests/test_vm.py
55
+ enlgd/__init__.py
56
+ enlgd/ast_nodes.py
57
+ enlgd/compiler.py
58
+ enlgd/emitter.py
59
+ enlgd/lexer.py
60
+ enlgd/parser.py
61
+ enlgd/tokens.py
62
+ enlgf/__init__.py
63
+ enlgf/ast_nodes.py
64
+ enlgf/emitter.py
65
+ enlgf/lexer.py
66
+ enlgf/parser.py
67
+ enlgf/server.py
68
+ enlgf/tokens.py
69
+ enlgm/__init__.py
70
+ enlgm/ast_nodes.py
71
+ enlgm/compiler.py
72
+ enlgm/emitter.py
73
+ enlgm/lexer.py
74
+ enlgm/parser.py
75
+ enlgm/tokens.py
76
+ enlgm/tests/test_enlgm.py
77
+ enlgs/__init__.py
78
+ enlgs/ast_nodes.py
79
+ enlgs/compiler.py
80
+ enlgs/emitter.py
81
+ enlgs/lexer.py
82
+ enlgs/parser.py
83
+ enlgs/tokens.py
84
+ enlgs/tests/test_natural_syntax.py
85
+ enlgs/tests/test_universe_syntax.py
86
+ vscode-enlang/README.md
87
+ vscode-enlang/enlang-1.0.0.vsix
88
+ vscode-enlang/enlang-1.1.0.vsix
89
+ vscode-enlang/enlang-1.1.1.vsix
90
+ vscode-enlang/enlang-1.1.2.vsix
91
+ vscode-enlang/enlang-1.2.0.vsix
92
+ vscode-enlang/enlang-1.2.1.vsix
93
+ vscode-enlang/enlang-1.2.2.vsix
94
+ vscode-enlang/enlang-1.2.3.vsix
95
+ vscode-enlang/enlang-1.2.4.vsix
96
+ vscode-enlang/enlang-1.2.5.vsix
97
+ vscode-enlang/enlang-1.2.6.vsix
98
+ vscode-enlang/enlang-1.2.7.vsix
99
+ vscode-enlang/enlang-1.2.8.vsix
100
+ vscode-enlang/enlang-1.2.9.vsix
101
+ vscode-enlang/enlang-1.3.0.vsix
102
+ vscode-enlang/enlang-1.3.1.vsix
103
+ vscode-enlang/enlang-1.3.2.vsix
104
+ vscode-enlang/enlang-1.3.3.vsix
105
+ vscode-enlang/enlang-1.3.4.vsix
106
+ vscode-enlang/enlang-1.3.5.vsix
107
+ vscode-enlang/enlang-1.3.6.vsix
108
+ vscode-enlang/enlang-1.3.7.vsix
109
+ vscode-enlang/enlang-1.3.8.vsix
110
+ vscode-enlang/enlang-1.3.9.vsix
111
+ vscode-enlang/enlang-1.4.0.vsix
112
+ vscode-enlang/enlang-1.4.1.vsix
113
+ vscode-enlang/enlang-1.4.2.vsix
114
+ vscode-enlang/enlang-1.4.3.vsix
115
+ vscode-enlang/enlang-1.4.4.vsix
116
+ vscode-enlang/enlang-1.4.5.vsix
117
+ vscode-enlang/enlang-1.4.6.vsix
118
+ vscode-enlang/enlang-1.4.7.vsix
119
+ vscode-enlang/enlang-2.0.0.vsix
120
+ vscode-enlang/enlang-2.1.0.vsix
121
+ vscode-enlang/enlang-2.1.1.vsix
122
+ vscode-enlang/enlang-2.1.2.vsix
123
+ vscode-enlang/enlang-2.1.3.vsix
124
+ vscode-enlang/enlang-2.1.4.vsix
125
+ vscode-enlang/enlang-2.1.5.vsix
126
+ vscode-enlang/enlang-2.1.6.vsix
127
+ vscode-enlang/enlang-2.1.7.vsix
128
+ vscode-enlang/enlang-2.1.8.vsix
129
+ vscode-enlang/enlang-2.1.9.vsix
130
+ vscode-enlang/enlang-2.2.0.vsix
131
+ vscode-enlang/enlang-2.2.1.vsix
132
+ vscode-enlang/enlang-2.2.2.vsix
133
+ vscode-enlang/enlang-2.2.3.vsix
134
+ vscode-enlang/enlang-2.2.4.vsix
135
+ vscode-enlang/enlang-2.2.5.vsix
136
+ vscode-enlang/enlang-2.2.6.vsix
137
+ vscode-enlang/enlang-2.2.7.vsix
138
+ vscode-enlang/enlang-2.2.8.vsix
139
+ vscode-enlang/enlang-2.3.0.vsix
140
+ vscode-enlang/enlang-2.3.1.vsix
141
+ vscode-enlang/enlang-2.3.2.vsix
142
+ vscode-enlang/enlang-2.4.0.vsix
143
+ vscode-enlang/enlang-2.4.1.vsix
144
+ vscode-enlang/enlang-2.5.0.vsix
145
+ vscode-enlang/enlang-2.5.1.vsix
146
+ vscode-enlang/extension.js
147
+ vscode-enlang/language-configuration.json
148
+ vscode-enlang/package.json
149
+ vscode-enlang/snippets/enlang.code-snippets
150
+ vscode-enlang/syntaxes/enlang.tmLanguage.json
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ enlang = enlg.cli:main
3
+ enlg = enlg.cli:main
@@ -0,0 +1,6 @@
1
+ enlang
2
+ enlg
3
+ enlgd
4
+ enlgf
5
+ enlgm
6
+ enlgs
@@ -0,0 +1,3 @@
1
+ """enlg - Ecosystem Core Foundation."""
2
+
3
+ __version__ = "1.0.0"
@@ -0,0 +1,6 @@
1
+ """enlg Main Entry Point for python -m enlg."""
2
+
3
+ from enlg.cli import main
4
+
5
+ if __name__ == "__main__":
6
+ main()