cajyu 1.1.0 → 1.2.1
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/ErrTable.md +54 -0
- package/README.md +5 -1
- package/bin/cajyu.js +1 -1
- package/logos/README.md +8 -0
- package/logos/logo-128.png +0 -0
- package/logos/logo-256.png +0 -0
- package/logos/logo-64.png +0 -0
- package/package.json +1 -1
package/ErrTable.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Cajyu Error Table
|
|
2
|
+
|
|
3
|
+
Complete list of all error codes in Cajyu (ERR001 – ERR040).
|
|
4
|
+
|
|
5
|
+
| Code | Name | Description |
|
|
6
|
+
|--------|-------------------------------|-------------|
|
|
7
|
+
| ERR001 | Syntax error | General syntax error in the source code |
|
|
8
|
+
| ERR002 | Unexpected token | The parser encountered a token it did not expect |
|
|
9
|
+
| ERR003 | Missing closing brace | A `{` was opened but never closed with `}` |
|
|
10
|
+
| ERR004 | Type mismatch | A value does not match the declared type |
|
|
11
|
+
| ERR005 | Undefined variable | A variable was used before being declared |
|
|
12
|
+
| ERR006 | Invalid function call | Attempted to call something that is not a function |
|
|
13
|
+
| ERR007 | Missing parentheses | Expected `(` or `)` but it was missing |
|
|
14
|
+
| ERR008 | Invalid import | The import statement is malformed |
|
|
15
|
+
| ERR009 | Unexpected end of file | The file ended while the parser still expected more code |
|
|
16
|
+
| ERR010 | Invalid operator | An operator was used in an invalid context |
|
|
17
|
+
| ERR011 | Missing semicolon or block | Expected `;` or a `{ ... }` block |
|
|
18
|
+
| ERR012 | Invalid type annotation | The type after `:` is not recognized |
|
|
19
|
+
| ERR013 | Keyword used as identifier | A reserved keyword was used as a variable or function name |
|
|
20
|
+
| ERR014 | Unterminated string | A string was opened with `"` or `'` but never closed |
|
|
21
|
+
| ERR015 | Invalid number | A numeric literal is malformed |
|
|
22
|
+
| ERR016 | Duplicate declaration | A variable or function was declared more than once in the same scope |
|
|
23
|
+
| ERR017 | Missing return value | A function declared to return a value did not return anything |
|
|
24
|
+
| ERR018 | Invalid class member | A class contains an invalid member |
|
|
25
|
+
| ERR019 | Async error | Error related to `sync` / `wait` |
|
|
26
|
+
| ERR020 | Library not found | The requested library does not exist in CajyuLibs |
|
|
27
|
+
| ERR021 | Division by zero | Attempted to divide by zero |
|
|
28
|
+
| ERR022 | Index out of range | Array or string index is outside valid bounds |
|
|
29
|
+
| ERR023 | Invalid argument count | A function was called with the wrong number of arguments |
|
|
30
|
+
| ERR024 | Cannot call non-function | Tried to call a value that is not callable |
|
|
31
|
+
| ERR025 | Missing property | Tried to access a property that does not exist |
|
|
32
|
+
| ERR026 | Circular import | An import cycle was detected |
|
|
33
|
+
| ERR027 | Invalid range | `range()` received invalid arguments |
|
|
34
|
+
| ERR028 | File not found | A file operation targeted a non-existent file |
|
|
35
|
+
| ERR029 | Permission denied | The process does not have permission to access a resource |
|
|
36
|
+
| ERR030 | Network error | A network request failed |
|
|
37
|
+
| ERR031 | JSON parse error | Failed to parse a JSON string |
|
|
38
|
+
| ERR032 | Timeout | An operation took too long and timed out |
|
|
39
|
+
| ERR033 | Invalid assignment | Tried to assign to something that cannot be assigned |
|
|
40
|
+
| ERR034 | Break outside loop | `break` was used outside of a loop |
|
|
41
|
+
| ERR035 | Continue outside loop | `continue` was used outside of a loop |
|
|
42
|
+
| ERR036 | Invalid class inheritance | Class inheritance is malformed |
|
|
43
|
+
| ERR037 | Abstract method not implemented | An abstract method was not implemented |
|
|
44
|
+
| ERR038 | Stack overflow | The call stack exceeded its limit |
|
|
45
|
+
| ERR039 | Memory limit exceeded | The program used too much memory |
|
|
46
|
+
| ERR040 | Unknown builtin | Called a builtin function that does not exist |
|
|
47
|
+
|
|
48
|
+
All errors follow the format:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
There is an <error name> in line <n>: ERR0xx.
|
|
52
|
+
<line content>
|
|
53
|
+
^
|
|
54
|
+
```
|
package/README.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# Cajyu
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/abs-js/Cajyu/main/logos/logo-128.png" alt="Cajyu Logo" width="128">
|
|
5
|
+
</p>
|
|
6
|
+
|
|
3
7
|
**A clean, practical programming language that transpiles to JavaScript.**
|
|
4
8
|
|
|
5
9
|
Cajyu gives you a simpler, more expressive syntax while staying fully compatible with the JavaScript ecosystem.
|
|
6
10
|
|
|
7
11
|
[](https://www.npmjs.com/package/cajyu)
|
|
8
12
|
[](LICENSE)
|
|
9
|
-
[](package.json)
|
|
10
14
|
|
|
11
15
|
---
|
|
12
16
|
|
package/bin/cajyu.js
CHANGED
|
@@ -9,7 +9,7 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
9
9
|
const __dirname = path.dirname(__filename);
|
|
10
10
|
|
|
11
11
|
const CAJYULIBS_REPO = 'https://github.com/abs-js/CajyuLibs.git';
|
|
12
|
-
const VERSION = '1.
|
|
12
|
+
const VERSION = '1.2.0';
|
|
13
13
|
|
|
14
14
|
const args = process.argv.slice(2);
|
|
15
15
|
const command = args[0];
|
package/logos/README.md
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|