@@ -40,6 +40,7 @@ nullscript run hello.ns
4040```
4141
4242Output:
43+
4344```
4445Hello, World! Welcome to NullScript! 🎭
4546```
@@ -50,19 +51,19 @@ Hello, World! Welcome to NullScript! 🎭
5051
5152NullScript replaces traditional JavaScript keywords with more expressive alternatives:
5253
53- | JavaScript | NullScript | Description |
54- | ------------| ------------| -------------|
55- | ` function ` | ` run ` | Define a function |
56- | ` const ` | ` fixed ` | Constant variable |
57- | ` let ` | ` let ` | Mutable variable |
58- | ` console.log ` | ` speak.say ` | Print to console |
59- | ` console.error ` | ` speak.scream ` | Print error |
60- | ` if ` | ` whatever ` | Conditional statement |
61- | ` else ` | ` otherwise ` | Else clause |
62- | ` true ` | ` yes ` | Boolean true |
63- | ` false ` | ` no ` | Boolean false |
64- | ` class ` | ` model ` | Define a class |
65- | ` new ` | ` fresh ` | Create instance |
54+ | JavaScript | NullScript | Description |
55+ | --------------- | -------------- | --------------------- |
56+ | ` function ` | ` run ` | Define a function |
57+ | ` const ` | ` fixed ` | Constant variable |
58+ | ` let ` | ` let ` | Mutable variable |
59+ | ` console.log ` | ` speak.say ` | Print to console |
60+ | ` console.error ` | ` speak.scream ` | Print error |
61+ | ` if ` | ` whatever ` | Conditional statement |
62+ | ` else ` | ` otherwise ` | Else clause |
63+ | ` true ` | ` yes ` | Boolean true |
64+ | ` false ` | ` no ` | Boolean false |
65+ | ` class ` | ` model ` | Define a class |
66+ | ` new ` | ` fresh ` | Create instance |
6667
6768### Basic Syntax Examples
6869
@@ -226,6 +227,7 @@ speak.say(`Result: ${sum}`);
226227### Module System
227228
228229** math.ns**
230+
229231``` nullscript
230232fixed PI = 3.14159;
231233
@@ -241,6 +243,7 @@ share { PI, calculateArea, calculateCircumference };
241243```
242244
243245** main.ns**
246+
244247``` nullscript
245248use { calculateArea, calculateCircumference } from './math.ns';
246249
@@ -303,14 +306,14 @@ run later fetchAndFormatData() {
303306
304307``` javascript
305308// Import compiled NullScript module
306- import { greet , calculateSum } from ' ./compiled/utils.js' ;
309+ import { greet , calculateSum } from " ./compiled/utils.js" ;
307310
308311// Use NullScript functions in JavaScript
309312const message = greet (" JavaScript Developer" );
310313const sum = calculateSum (10 , 20 );
311314
312315console .log (message); // Output from NullScript function
313- console .log (sum); // Output from NullScript function
316+ console .log (sum); // Output from NullScript function
314317```
315318
316319## 🎯 Why Choose NullScript?
@@ -334,11 +337,11 @@ console.log(sum); // Output from NullScript function
334337
335338## 📚 Documentation
336339
337- - ** [ Getting Started Guide] ( ./guide/getting-started.md ) ** - Complete setup and first steps
338- - ** [ Language Reference] ( ./reference/keywords.md ) ** - Full keyword mapping and syntax
339- - ** [ Examples] ( ./examples/basic.md ) ** - More code examples and patterns
340- - ** [ CLI Documentation] ( ./cli/usage.md ) ** - Complete command-line interface guide
341- - ** [ Interactive Playground] ( ./playground.md ) ** - Try NullScript in your browser
340+ - ** [ Getting Started Guide] ( ./src/ guide/getting-started.md ) ** - Complete setup and first steps
341+ - ** [ Language Reference] ( ./src/ reference/keywords.md ) ** - Full keyword mapping and syntax
342+ - ** [ Examples] ( ./src/ examples/basic.md ) ** - More code examples and patterns
343+ - ** [ CLI Documentation] ( ./src/ cli/usage.md ) ** - Complete command-line interface guide
344+ - ** [ Interactive Playground] ( ./src/ playground.md ) ** - Try NullScript in your browser
342345
343346## 🤝 Contributing
344347
@@ -366,4 +369,4 @@ NullScript embraces the joy of coding while maintaining the power and flexibilit
366369
367370** Ready to add some attitude to your JavaScript?** 🚀
368371
369- [ Get Started] ( ./guide/getting-started.md ) | [ Try the Playground] ( ./playground.md ) | [ View Examples] ( ./examples/basic.md )
372+ [ Get Started] ( ./src/ guide/getting-started.md ) | [ Try the Playground] ( ./src/ playground.md ) | [ View Examples] ( ./src /examples/basic.md )
0 commit comments