askql
askql copied to clipboard
AskQL is a query language that can express any data request
We'd like to make sure that our unit tests don't require network access to run.
Javascript has both pre- and post-incrementation, useful in loops, e.g.: ``` let result = []; for (let i = 1; i
The following program does not work. The error is: ``` Error: Unknown identifier '='! ``` ``` // Below is a complete solution for a 5kyu Codewars task: // https://www.codewars.com/kata/54d81488b981293527000c8f/javascript //...
Running the following program in the Playground: ``` ask { 3[1] } ``` returns: ``` null ``` Expected: ``` Error: cannot access indexes of a number ```
There are some operators in AskVM, e.g. 'lessThan' resource (< binary operator) (src/askvm/resources/math/lessThan.ts), but we are missing logical operators, like 'and' resource (&& operator). Dear new contributor, If you have...
Running a program with `remote` always results in an error. ``` 🦄 .editor // Entering editor mode (^D to finish, ^C to cancel) remote('/') { hi() } Uncaught TypeError: fetch...
``` ask { const firstArg = fun { arguments:at('0') } firstArg(5) } ``` should return `5`
**Example 1** `(int, int) -> int` ``` const sum2: (int, int) -> int = fun (a:int, b:int) { a + b } const sum2: fun(int, int, int) = fun (a:int,...
To provide better DX (developer experience), our parser should keep track of position (line, column) - ideally, `startLoc` and `endLoc` (see https://prettier.io/docs/en/plugins.html#parsers for context).