mirror of
https://github.com/hi-language/transpiler.git
synced 2026-01-13 16:18:04 +00:00
Docs: Update test results
This commit is contained in:
committed by
github-actions[bot]
parent
1aa4c04240
commit
7052cc5323
141
test-results.md
141
test-results.md
@@ -1,74 +1,101 @@
|
|||||||
# Hi Language Test Results
|
# Hi Language Test Results
|
||||||
|
|
||||||
**Run at:** 2025-09-26T17:09:59.761Z
|
**Run at:** 2025-09-26T17:14:42.404Z
|
||||||
|
|
||||||
| Test Case | Status |
|
| Test Case | Status |
|
||||||
|-----------|--------|
|
|-----------|--------|
|
||||||
| Initialization Step | ❌ FAIL |
|
| `arrays.hi` | ❌ FAIL |
|
||||||
|
| `conditionals.hi` | ❌ FAIL |
|
||||||
|
| `declarations.hi` | ✅ PASS |
|
||||||
|
| `functions.hi` | ❌ FAIL |
|
||||||
|
| `nested_object.hi` | ✅ PASS |
|
||||||
|
| `object_multi.hi` | ✅ PASS |
|
||||||
|
| `precedence.hi` | ✅ PASS |
|
||||||
|
| `simple_io.hi` | ❌ FAIL |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Failures
|
## Failures
|
||||||
|
|
||||||
### `Initialization Step`
|
### `arrays.hi`
|
||||||
|
|
||||||
**Reason:** Master, the test runner encountered a fatal error.
|
**Reason:** Transpilation or execution error
|
||||||
|
|
||||||
**Error:**
|
**Error:**
|
||||||
```
|
```
|
||||||
Error: Parser Definition Errors detected:
|
Parsing error: Redundant input, expecting EOF but found: =
|
||||||
Ambiguous Alternatives Detected: <2 ,4> in <OR> inside <statement> Rule,
|
```
|
||||||
<Identifier, Dot, Identifier> may appears as a prefix path in all these alternatives.
|
|
||||||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
---
|
||||||
For Further details.
|
|
||||||
-------------------------------
|
### `conditionals.hi`
|
||||||
Ambiguous Alternatives Detected: <2 ,4> in <OR> inside <statement> Rule,
|
|
||||||
<Identifier, LBracket, Number> may appears as a prefix path in all these alternatives.
|
**Reason:** Transpilation or execution error
|
||||||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
||||||
For Further details.
|
**Error:**
|
||||||
-------------------------------
|
```
|
||||||
Ambiguous Alternatives Detected: <2 ,4> in <OR> inside <statement> Rule,
|
Command failed: node
|
||||||
<Identifier, LBracket, String> may appears as a prefix path in all these alternatives.
|
[stdin]:9
|
||||||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
let status = ("ok"((status == "ok")) ? (() => {
|
||||||
For Further details.
|
^
|
||||||
-------------------------------
|
|
||||||
Ambiguous Alternatives Detected: <2 ,4> in <OR> inside <statement> Rule,
|
ReferenceError: Cannot access 'status' before initialization
|
||||||
<Identifier, LBracket, Null> may appears as a prefix path in all these alternatives.
|
at [stdin]:9:21
|
||||||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
at runScriptInThisContext (node:internal/vm:209:10)
|
||||||
For Further details.
|
at node:internal/process/execution:118:14
|
||||||
-------------------------------
|
at [stdin]-wrapper:6:24
|
||||||
Ambiguous Alternatives Detected: <2 ,4> in <OR> inside <statement> Rule,
|
at runScript (node:internal/process/execution:101:62)
|
||||||
<Identifier, LBracket, Identifier> may appears as a prefix path in all these alternatives.
|
at evalScript (node:internal/process/execution:133:3)
|
||||||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
at node:internal/main/eval_stdin:32:5
|
||||||
For Further details.
|
at Socket.<anonymous> (node:internal/process/execution:234:5)
|
||||||
-------------------------------
|
at Socket.emit (node:events:536:35)
|
||||||
Ambiguous Alternatives Detected: <2 ,4> in <OR> inside <statement> Rule,
|
at endReadableNT (node:internal/streams/readable:1698:12)
|
||||||
<Identifier, LBracket, At> may appears as a prefix path in all these alternatives.
|
|
||||||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
Node.js v20.19.5
|
||||||
For Further details.
|
|
||||||
-------------------------------
|
```
|
||||||
Ambiguous Alternatives Detected: <2 ,4> in <OR> inside <statement> Rule,
|
|
||||||
<Identifier, LBracket, LParen> may appears as a prefix path in all these alternatives.
|
**Generated JavaScript:**
|
||||||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
```js
|
||||||
For Further details.
|
let a = 10;
|
||||||
-------------------------------
|
let b = 20;
|
||||||
Ambiguous Alternatives Detected: <2 ,4> in <OR> inside <statement> Rule,
|
let max = ((a > b) ? (() => {
|
||||||
<Identifier, LBracket, LBrace> may appears as a prefix path in all these alternatives.
|
return a;
|
||||||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
})() : (() => {
|
||||||
For Further details.
|
return b;
|
||||||
-------------------------------
|
})());
|
||||||
Ambiguous Alternatives Detected: <2 ,4> in <OR> inside <statement> Rule,
|
console.log(max);
|
||||||
<Identifier, LBracket, LBracket> may appears as a prefix path in all these alternatives.
|
let status = ("ok"((status == "ok")) ? (() => {
|
||||||
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
return console.log("Status is OK");
|
||||||
For Further details.
|
})() : null);
|
||||||
at file:///home/runner/work/transpiler/transpiler/node_modules/chevrotain/lib/src/parse/parser/parser.js:140:23
|
let grade = ((max > 15) ? (() => {
|
||||||
at HiParser.TRACE_INIT (file:///home/runner/work/transpiler/transpiler/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js:44:20)
|
return "A";
|
||||||
at HiParser.performSelfAnalysis (file:///home/runner/work/transpiler/transpiler/node_modules/chevrotain/lib/src/parse/parser/parser.js:66:14)
|
})() : (() => {
|
||||||
at new HiParser (file:///home/runner/work/transpiler/transpiler/src/parser.js:221:14)
|
return "B";
|
||||||
at file:///home/runner/work/transpiler/transpiler/src/parser.js:225:23
|
})());
|
||||||
at ModuleJob.run (node:internal/modules/esm/module_job:325:25)
|
console.log(grade);
|
||||||
at async ModuleLoader.import (node:internal/modules/esm/loader:606:24)
|
```
|
||||||
at async run (file:///home/runner/work/transpiler/transpiler/test_runner.js:83:21)
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### `functions.hi`
|
||||||
|
|
||||||
|
**Reason:** Transpilation or execution error
|
||||||
|
|
||||||
|
**Error:**
|
||||||
|
```
|
||||||
|
Parsing error: Expecting token of type --> RBrace <-- but found --> ',' <--
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### `simple_io.hi`
|
||||||
|
|
||||||
|
**Reason:** Transpilation or execution error
|
||||||
|
|
||||||
|
**Error:**
|
||||||
|
```
|
||||||
|
Parsing error: Redundant input, expecting EOF but found: =
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user