curl-programming-lang 1.0.0__tar.gz → 1.0.2__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.
@@ -0,0 +1,245 @@
1
+ Metadata-Version: 2.4
2
+ Name: curl-programming-lang
3
+ Version: 1.0.2
4
+ Summary: Curl is an open-source programming language built on Python technology
5
+ Author: Ritvik Gautam
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/gautamritvik/Curl-Programming
8
+ Project-URL: Repository, https://github.com/gautamritvik/Curl-Programming
9
+ Project-URL: Bug Tracker, https://github.com/gautamritvik/Curl-Programming/issues
10
+ Keywords: programming-language,interpreter,curl,curlang
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Topic :: Software Development :: Interpreters
15
+ Requires-Python: >=3.7
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Dynamic: license-file
19
+
20
+ # Curl Programming Language
21
+
22
+ Curl is an open-source programming language built on Python technology, designed to be simple and expressive. Every statement uses a `keyword{...}\` style, and blocks are opened with `-` and closed with `--\`.
23
+
24
+ ## Requirements
25
+
26
+ - Python 3.7+
27
+ - Node.js *(optional — only needed for `otherCoding{"JavaScript", ...}` blocks)*
28
+
29
+ ## Installation
30
+
31
+ **From PyPI (recommended):**
32
+
33
+ ```
34
+ pip install curl-programming-lang
35
+ ```
36
+
37
+ **To upgrade:**
38
+
39
+ ```
40
+ pip install --upgrade curl-programming-lang
41
+ ```
42
+
43
+ **From source:**
44
+
45
+ ```
46
+ git clone https://github.com/gautamritvik/Curl-Programming.git
47
+ cd Curl-Programming
48
+ pip install -e .
49
+ ```
50
+
51
+ ## Running a Curl program
52
+
53
+ ```
54
+ curlang [YOUR-FILE].curl
55
+ ```
56
+
57
+ ---
58
+
59
+ ## Syntax Reference
60
+
61
+ ### Print — `pcType`
62
+
63
+ Outputs text to the console. Supports string concatenation with `+`.
64
+
65
+ ```
66
+ pcType{"Hello, World!"}\
67
+ pcType{"Hello, " + var{name} + "!"}\
68
+ ```
69
+
70
+ ---
71
+
72
+ ### Input — `pcAsk`
73
+
74
+ Prompts the user for input. The result is accessed anywhere with `input{ans}`.
75
+
76
+ ```
77
+ pcAsk{"What is your name?">>}\
78
+ pcType{"You said: " + input{ans}}\
79
+ ```
80
+
81
+ ---
82
+
83
+ ### Variables — `var`
84
+
85
+ Assign a value with `var{name, value}\`. Reference it later with `var{name}`.
86
+
87
+ ```
88
+ var{name, "Ritvik"}\
89
+ pcType{var{name}}\
90
+ ```
91
+
92
+ Variables can hold strings, numbers, or lists.
93
+
94
+ ---
95
+
96
+ ### Lists — `list`
97
+
98
+ Create a list with items separated by `;`. Typically assigned to a variable.
99
+
100
+ ```
101
+ var{colors, list{"red"; "green"; "blue"}}\
102
+ pcType{var{colors}}\
103
+ ```
104
+
105
+ ---
106
+
107
+ ### Functions — `createFunc` / `func`
108
+
109
+ Define a function with `createFunc{name}-` and close it with `--\`. Call it with `func{name}\`.
110
+
111
+ ```
112
+ createFunc{greet}-
113
+ pcType{"Hello from greet!"}\
114
+ --\
115
+
116
+ func{greet}\
117
+ ```
118
+
119
+ ---
120
+
121
+ ### Conditionals — `if` / `elif` / `else`
122
+
123
+ **Simple if:**
124
+
125
+ ```
126
+ if{var{score} >= 90, then}-
127
+ pcType{"Grade: A"}\
128
+ --\
129
+ ```
130
+
131
+ **If / else:**
132
+
133
+ ```
134
+ if{var{score} >= 90, then}-
135
+ pcType{"Grade: A"}\
136
+ else:
137
+ pcType{"Grade: B or below"}\
138
+ --\
139
+ ```
140
+
141
+ **If / elif / else:**
142
+
143
+ ```
144
+ if{var{score} >= 90, then}-
145
+ pcType{"Grade: A"}\
146
+ elif{var{score} >= 80, then}-
147
+ pcType{"Grade: B"}\
148
+ else:
149
+ pcType{"Grade: C or below"}\
150
+ --\
151
+ ```
152
+
153
+ > For `if`+`elif` chains without an `else`, close with `--\--\`.
154
+
155
+ **Supported comparison operators:** `==` `!=` `<` `>` `<=` `>=`
156
+
157
+ ---
158
+
159
+ ### Embedded code blocks — `otherCoding`
160
+
161
+ Run a block of code written in another language. The closing `}\` must be on its own line.
162
+
163
+ ```
164
+ otherCoding{"Python",
165
+
166
+ x = 10
167
+ print("x =", x)
168
+
169
+ }\
170
+ ```
171
+
172
+ **Supported languages:**
173
+
174
+ | Language | Status |
175
+ |---|---|
176
+ | Python | Fully supported |
177
+ | JavaScript / Node.js | Supported (requires Node.js) |
178
+ | Java, C, C++ | Not supported at runtime |
179
+
180
+ ---
181
+
182
+ ### Import — `import`
183
+
184
+ Import a Python package and give it a nickname.
185
+
186
+ ```
187
+ import{"math", m}\
188
+ ```
189
+
190
+ ---
191
+
192
+ ### AI — `pcAI`
193
+
194
+ *(Stub — reserved for future AI integration.)*
195
+
196
+ ```
197
+ pcAI{".on", "You are a helpful assistant", "profanityControl"}\
198
+ ```
199
+
200
+ ---
201
+
202
+ ## Symbols
203
+
204
+ | Symbol | Meaning |
205
+ |---|---|
206
+ | `\` | End of a statement |
207
+ | `-` | Start of a block |
208
+ | `--\` | End of a block |
209
+ | `{}` | Argument container |
210
+ | `""` | String / text data |
211
+ | `;` | Separator inside lists |
212
+ | `,` | Separator between parameters |
213
+ | `==` | Equals |
214
+ | `!=` | Not equals |
215
+ | `=` | Assignment |
216
+ | `+` | Concatenation / addition |
217
+
218
+ ---
219
+
220
+ ## Example program
221
+
222
+ ```
223
+ var{name, "Ritvik"}\
224
+ pcType{"Hello, " + var{name} + "!"}\
225
+
226
+ var{score, 95}\
227
+ if{var{score} >= 90, then}-
228
+ pcType{"You got an A!"}\
229
+ else:
230
+ pcType{"Keep trying!"}\
231
+ --\
232
+
233
+ createFunc{sayBye}-
234
+ pcType{"Goodbye, " + var{name} + "!"}\
235
+ --\
236
+
237
+ func{sayBye}\
238
+ ```
239
+
240
+ ---
241
+
242
+ ## License
243
+
244
+ This project is licensed under the Apache License 2.0 (OSI-approved).
245
+ See the full license at: https://github.com/gautamritvik/Curl-Programming/blob/main/LICENSE
@@ -9,11 +9,25 @@ Curl is an open-source programming language built on Python technology, designed
9
9
 
10
10
  ## Installation
11
11
 
12
+ **From PyPI (recommended):**
13
+
12
14
  ```
13
- pip install -e .
15
+ pip install curl-programming-lang
16
+ ```
17
+
18
+ **To upgrade:**
19
+
14
20
  ```
21
+ pip install --upgrade curl-programming-lang
22
+ ```
23
+
24
+ **From source:**
15
25
 
16
- This registers the `curlang` command globally.
26
+ ```
27
+ git clone https://github.com/gautamritvik/Curl-Programming.git
28
+ cd Curl-Programming
29
+ pip install -e .
30
+ ```
17
31
 
18
32
  ## Running a Curl program
19
33
 
@@ -0,0 +1,245 @@
1
+ Metadata-Version: 2.4
2
+ Name: curl-programming-lang
3
+ Version: 1.0.2
4
+ Summary: Curl is an open-source programming language built on Python technology
5
+ Author: Ritvik Gautam
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/gautamritvik/Curl-Programming
8
+ Project-URL: Repository, https://github.com/gautamritvik/Curl-Programming
9
+ Project-URL: Bug Tracker, https://github.com/gautamritvik/Curl-Programming/issues
10
+ Keywords: programming-language,interpreter,curl,curlang
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Topic :: Software Development :: Interpreters
15
+ Requires-Python: >=3.7
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Dynamic: license-file
19
+
20
+ # Curl Programming Language
21
+
22
+ Curl is an open-source programming language built on Python technology, designed to be simple and expressive. Every statement uses a `keyword{...}\` style, and blocks are opened with `-` and closed with `--\`.
23
+
24
+ ## Requirements
25
+
26
+ - Python 3.7+
27
+ - Node.js *(optional — only needed for `otherCoding{"JavaScript", ...}` blocks)*
28
+
29
+ ## Installation
30
+
31
+ **From PyPI (recommended):**
32
+
33
+ ```
34
+ pip install curl-programming-lang
35
+ ```
36
+
37
+ **To upgrade:**
38
+
39
+ ```
40
+ pip install --upgrade curl-programming-lang
41
+ ```
42
+
43
+ **From source:**
44
+
45
+ ```
46
+ git clone https://github.com/gautamritvik/Curl-Programming.git
47
+ cd Curl-Programming
48
+ pip install -e .
49
+ ```
50
+
51
+ ## Running a Curl program
52
+
53
+ ```
54
+ curlang [YOUR-FILE].curl
55
+ ```
56
+
57
+ ---
58
+
59
+ ## Syntax Reference
60
+
61
+ ### Print — `pcType`
62
+
63
+ Outputs text to the console. Supports string concatenation with `+`.
64
+
65
+ ```
66
+ pcType{"Hello, World!"}\
67
+ pcType{"Hello, " + var{name} + "!"}\
68
+ ```
69
+
70
+ ---
71
+
72
+ ### Input — `pcAsk`
73
+
74
+ Prompts the user for input. The result is accessed anywhere with `input{ans}`.
75
+
76
+ ```
77
+ pcAsk{"What is your name?">>}\
78
+ pcType{"You said: " + input{ans}}\
79
+ ```
80
+
81
+ ---
82
+
83
+ ### Variables — `var`
84
+
85
+ Assign a value with `var{name, value}\`. Reference it later with `var{name}`.
86
+
87
+ ```
88
+ var{name, "Ritvik"}\
89
+ pcType{var{name}}\
90
+ ```
91
+
92
+ Variables can hold strings, numbers, or lists.
93
+
94
+ ---
95
+
96
+ ### Lists — `list`
97
+
98
+ Create a list with items separated by `;`. Typically assigned to a variable.
99
+
100
+ ```
101
+ var{colors, list{"red"; "green"; "blue"}}\
102
+ pcType{var{colors}}\
103
+ ```
104
+
105
+ ---
106
+
107
+ ### Functions — `createFunc` / `func`
108
+
109
+ Define a function with `createFunc{name}-` and close it with `--\`. Call it with `func{name}\`.
110
+
111
+ ```
112
+ createFunc{greet}-
113
+ pcType{"Hello from greet!"}\
114
+ --\
115
+
116
+ func{greet}\
117
+ ```
118
+
119
+ ---
120
+
121
+ ### Conditionals — `if` / `elif` / `else`
122
+
123
+ **Simple if:**
124
+
125
+ ```
126
+ if{var{score} >= 90, then}-
127
+ pcType{"Grade: A"}\
128
+ --\
129
+ ```
130
+
131
+ **If / else:**
132
+
133
+ ```
134
+ if{var{score} >= 90, then}-
135
+ pcType{"Grade: A"}\
136
+ else:
137
+ pcType{"Grade: B or below"}\
138
+ --\
139
+ ```
140
+
141
+ **If / elif / else:**
142
+
143
+ ```
144
+ if{var{score} >= 90, then}-
145
+ pcType{"Grade: A"}\
146
+ elif{var{score} >= 80, then}-
147
+ pcType{"Grade: B"}\
148
+ else:
149
+ pcType{"Grade: C or below"}\
150
+ --\
151
+ ```
152
+
153
+ > For `if`+`elif` chains without an `else`, close with `--\--\`.
154
+
155
+ **Supported comparison operators:** `==` `!=` `<` `>` `<=` `>=`
156
+
157
+ ---
158
+
159
+ ### Embedded code blocks — `otherCoding`
160
+
161
+ Run a block of code written in another language. The closing `}\` must be on its own line.
162
+
163
+ ```
164
+ otherCoding{"Python",
165
+
166
+ x = 10
167
+ print("x =", x)
168
+
169
+ }\
170
+ ```
171
+
172
+ **Supported languages:**
173
+
174
+ | Language | Status |
175
+ |---|---|
176
+ | Python | Fully supported |
177
+ | JavaScript / Node.js | Supported (requires Node.js) |
178
+ | Java, C, C++ | Not supported at runtime |
179
+
180
+ ---
181
+
182
+ ### Import — `import`
183
+
184
+ Import a Python package and give it a nickname.
185
+
186
+ ```
187
+ import{"math", m}\
188
+ ```
189
+
190
+ ---
191
+
192
+ ### AI — `pcAI`
193
+
194
+ *(Stub — reserved for future AI integration.)*
195
+
196
+ ```
197
+ pcAI{".on", "You are a helpful assistant", "profanityControl"}\
198
+ ```
199
+
200
+ ---
201
+
202
+ ## Symbols
203
+
204
+ | Symbol | Meaning |
205
+ |---|---|
206
+ | `\` | End of a statement |
207
+ | `-` | Start of a block |
208
+ | `--\` | End of a block |
209
+ | `{}` | Argument container |
210
+ | `""` | String / text data |
211
+ | `;` | Separator inside lists |
212
+ | `,` | Separator between parameters |
213
+ | `==` | Equals |
214
+ | `!=` | Not equals |
215
+ | `=` | Assignment |
216
+ | `+` | Concatenation / addition |
217
+
218
+ ---
219
+
220
+ ## Example program
221
+
222
+ ```
223
+ var{name, "Ritvik"}\
224
+ pcType{"Hello, " + var{name} + "!"}\
225
+
226
+ var{score, 95}\
227
+ if{var{score} >= 90, then}-
228
+ pcType{"You got an A!"}\
229
+ else:
230
+ pcType{"Keep trying!"}\
231
+ --\
232
+
233
+ createFunc{sayBye}-
234
+ pcType{"Goodbye, " + var{name} + "!"}\
235
+ --\
236
+
237
+ func{sayBye}\
238
+ ```
239
+
240
+ ---
241
+
242
+ ## License
243
+
244
+ This project is licensed under the Apache License 2.0 (OSI-approved).
245
+ See the full license at: https://github.com/gautamritvik/Curl-Programming/blob/main/LICENSE
@@ -0,0 +1,32 @@
1
+ [build-system]
2
+ requires = ["setuptools"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "curl-programming-lang"
7
+ version = "1.0.2"
8
+ description = "Curl is an open-source programming language built on Python technology"
9
+ readme = "README.md"
10
+ requires-python = ">=3.7"
11
+ license = { text = "Apache-2.0" }
12
+ authors = [
13
+ { name = "Ritvik Gautam" }
14
+ ]
15
+ keywords = ["programming-language", "interpreter", "curl", "curlang"]
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "License :: OSI Approved :: Apache Software License",
19
+ "Operating System :: OS Independent",
20
+ "Topic :: Software Development :: Interpreters",
21
+ ]
22
+
23
+ [project.urls]
24
+ Homepage = "https://github.com/gautamritvik/Curl-Programming"
25
+ Repository = "https://github.com/gautamritvik/Curl-Programming"
26
+ "Bug Tracker" = "https://github.com/gautamritvik/Curl-Programming/issues"
27
+
28
+ [project.scripts]
29
+ curlang = "main:main"
30
+
31
+ [tool.setuptools]
32
+ py-modules = ["main", "lexer", "parser", "interpreter", "errors"]
@@ -1,7 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: curl-programming-lang
3
- Version: 1.0.0
4
- Summary: Curl programming language interpreter
5
- Requires-Python: >=3.7
6
- License-File: LICENSE
7
- Dynamic: license-file
@@ -1,7 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: curl-programming-lang
3
- Version: 1.0.0
4
- Summary: Curl programming language interpreter
5
- Requires-Python: >=3.7
6
- License-File: LICENSE
7
- Dynamic: license-file
@@ -1,15 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "curl-programming-lang"
7
- version = "1.0.0"
8
- description = "Curl programming language interpreter"
9
- requires-python = ">=3.7"
10
-
11
- [project.scripts]
12
- curlang = "main:main"
13
-
14
- [tool.setuptools]
15
- py-modules = ["main", "lexer", "parser", "interpreter", "errors"]