treste 2.3.2 → 2.3.3

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.
package/README.md CHANGED
@@ -6,6 +6,7 @@ Linguagem de programação moderna e profissional, estruturalmente organizada e
6
6
 
7
7
  ## 🚀 Principais Funcionalidades
8
8
 
9
+ - ✅ **Execução Inline** - Execute código direto na linha de comando com `-e`
9
10
  - ✅ **Compilação para Web** - Gera JavaScript otimizado
10
11
  - ✅ **Compilação para Desktop** - Cria executáveis .exe nativos
11
12
  - ✅ **Sistema de Módulos** - Import/Export de módulos
@@ -74,10 +75,14 @@ npm --version # deve ser >= 9
74
75
 
75
76
  ## 🎯 Guia Rápido
76
77
 
77
- ### Executar diretamente (interpretador)
78
+ ### Executar código inline (sem arquivo)
79
+ ```bash
80
+ trest -e "печать('Olá, Mundo!')"
81
+ trest -e "пусть x = 10; печать(x)"
82
+ ```
83
+
84
+ ### Executar arquivo (interpretador)
78
85
  ```bash
79
- npm start exemplos/hello_cyrillic.trest
80
- # ou
81
86
  trest exemplos/hello_cyrillic.trest
82
87
  ```
83
88
 
package/dist/cli.js CHANGED
@@ -46,7 +46,7 @@ const interpreter_1 = require("./interpreter");
46
46
  const errors_1 = require("./errors");
47
47
  const module_1 = require("./module");
48
48
  const minimist_1 = __importDefault(require("minimist"));
49
- const VERSION = '2.3.2';
49
+ const VERSION = '2.3.3';
50
50
  function main() {
51
51
  const args = (0, minimist_1.default)(process.argv.slice(2));
52
52
  // Validação de argumentos
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "treste",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "Trest - Linguagem de programação moderna e profissional para Web e Desktop com suporte a Cirílico",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",