You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**F-String Brackets (`f"{...}"`)** – For formatted string interpolation.
80
79
81
80
#### Punctuation Usage
82
81
- Any use of reserved punctuation or bracket combinations outside their valid syntax context (or within unquoted identifiers) will raise a syntax error.
@@ -114,11 +113,6 @@ Our markup language supports multiple string delimiters to handle both literal a
114
113
```toml
115
114
path = `C:\Users\Name`
116
115
```
117
-
-**F-Strings (`f"..."`):**
118
-
For formatted strings with inline variable interpolation.
119
-
```toml
120
-
configPath = f"${base}/config.toml"
121
-
```
122
116
123
117
#### String Quotation Guidelines
124
118
- Mixing different string delimiters in one literal is not allowed.
@@ -150,36 +144,16 @@ Our markup language supports multiple string delimiters to handle both literal a
150
144
-**Logical OR:**`or`
151
145
-**Logical NOT:**`not`
152
146
153
-
#### 3.4.4. Pipeline Operator
154
-
- Chains operations together in a readable sequence:
155
-
```toml
156
-
result = ~( data | transform | filter )
157
-
```
158
-
159
-
#### 3.4.5. Conditional (Ternary) Operator
147
+
#### 3.4.4. Conditional (Ternary) Operator
160
148
- Allows inline conditional expressions:
161
149
```toml
162
-
status = ~( "Active" if is_active else "Inactive" )
163
-
```
164
-
165
-
#### 3.4.6. String Concatenation and Interpolation
166
-
-**Concatenation:** Using the `+` operator.
167
-
-**Interpolation:** Via f-string syntax:
168
-
```toml
169
-
full_path = f"${base}/docs"
150
+
status = ~( "Active" if "Active" else "Inactive" )
170
151
```
171
152
172
-
#### 3.4.7. Membership Operators
153
+
#### 3.4.5. Membership Operators
173
154
-**Membership:**`in`
174
155
-**Non-membership:**`not in`
175
156
176
-
#### 3.4.8. Merge Operator
177
-
- Used for table or inline table merging:
178
-
```toml
179
-
[production]
180
-
<< = default_config
181
-
```
182
-
183
157
---
184
158
185
159
### 3.5. Error Handling
@@ -198,45 +172,37 @@ Our markup language supports multiple string delimiters to handle both literal a
198
172
199
173
## 4. Examples
200
174
201
-
### Example 1: Pipeline Operation
202
-
203
-
```toml
204
-
[processing]
205
-
output = ~( data | sanitize | format )
206
-
```
207
-
208
-
### Example 2: Valid Use of Reserved Keywords and Conditional Expression
175
+
### Example 1: Valid Use of Reserved Keywords and Conditional Expression
209
176
210
177
```toml
211
178
[config]
212
179
is_active = true
213
-
status = ~( "Running" if is_active else "Stopped" )
180
+
status = ~( "Running" if "Active" else "Stopped" )
214
181
```
215
182
216
-
### Example 3: Reserved Function Usage
183
+
### Example 2: Reserved Function Usage
217
184
218
185
```toml
219
186
[dependencies]
220
187
source = File("requirements.txt")
221
188
version = Git("https://repo.git", tag="v1.0")
222
189
```
223
190
224
-
### Example 4: Membership and Merge Operators
191
+
### Example 3: Membership
225
192
226
193
```toml
227
194
[settings]
228
-
allowed = ~( "admin" in user.roles )
229
-
merged_config = default << user_override
195
+
allowed = ~( "admin" in ["admin"] )
230
196
```
231
197
232
-
### Example 5: Invalid Use of Reserved Punctuation
198
+
### Example 4: Invalid Use of Reserved Punctuation
233
199
234
200
```toml
235
201
[invalid]
236
202
some:key = "value" # Syntax error: Colon used incorrectly in key name
0 commit comments