-
Playing with the REPL example, I noticed that the equals sign is not recognized. In my usage of Prolog, it's rather common:
```
?- A = config(_, _).
Failed to parse: ParseError { span: 2..3, kind…
-
> I'm super _not_ sure about this idea, just dump it not to forget
# Problem
Sometimes we need to make hacks like this:
```neva
tmp Pass
---
foo -> .bar -> tmp
(tmp + 2) -> println
```
…
-
Add a 'de-sugar' step which transforms code into the operations that can be easily translated into scratch (e.g. `a *= b` --> `a = a * b`).
In the current state of the language, this won't do much …
-
See #724
## Before (desugared)
```neva
flow GetString(a, b, c) (s string) {
Select
---
:a -> select:if[0]
:b -> select:if[1]
:c -> select:if[2]
'a' -> select:th…
-
### Problem statement
There's no way to unpack more complex types the using `with val _ = ...` syntax sugar.
### Motivation
When working with `stream`, I tried to do something like:
```scala…
-
See #724 and #725 for context
## Before (desugared)
```neva
def Handler(data int) (sig any) {
Match, Println
---
:data -> match:data
1 -> match:if[0]
'one' -> match:then[0]
2 -> mat…
-
# Problem
Building a formatted string is kinda verbose. You'll probably end up by creating small formatter components per each use case. On the other hand in e.g. JavaScript string interpolation is…
-
## Before
```neva
flow NewPixel(x int, y int, c image.RGBA) (pixel image.Pixel) {
Struct
---
:x -> struct:x
:y -> struct:y
:c -> struct:color
struct -> :pixel
}
```
## After
``…
-
macaw-symbolic encodes functions as Crucible CFGs that take and return a struct of all the register values. This struct has a lot of fields. Here's a very simple no-op Macaw x86_64 CFG written in the …
-
In this case, the parser remembers, which form was used:
```lua
local function x() end
--- vs
local x = function() end
```
However, these:
```lua
function x() end
--- vs
x = function() end…