-
Hi, great project! I'm working on a TypeScript to Rust types generator (why doesn't this exist yet? -- tried ts2rs crate but it's based on Pest & seems no longer maintained -- oxc seems much better fo…
-
As of https://github.com/lcompilers/lpython/pull/907, the following now works:
```python
def f(lst: T[:], i: T) -> T:
lst[0] = i
return lst[0]
array: i32[1]
x: i32 = 69
print(f(array,…
-
### What reproduces the bug?
```sh
sudo bpftrace -e 'enum foo { BAR }; struct MyStruct { int y[4]; } BEGIN {printf("%d\n", BAR); $s = (struct MyStruct *) 0; $s->y[BAR]; }'
```
Results in
```
st…
sktt updated
9 months ago
-
i'm Integrate Coral with Presto to enable querying hive views has error:
```java
io.prestosql.spi.PrestoException: Failed to translate Hive view 'odv.monitor': Unhandled Hive AST token current_dat…
-
I cooked up a match/case version of a visitor pattern from the PEG parser. This is in a function that computes and prints FIRST sets for the grammar. (It is not used as part of the PEG generator, thou…
-
When visiting nodes in the AST, it could be handy if the visitor would allow for an early exit. This could work as follows:
```r
visit_nodes(ast, function(node) {
if(some check) {
# We got w…
-
I have some information about Node position. But I can't find any API to support this feature.
-
For the code
```
a = 10
b = 20
c = 30
print(b)
```
ruff is silent. Here is a function using the `ast` module that warns about variables that are set but not used later.
```
import ast
…
-
This is a tricky one. But awesome.
If we can override statement forms, then we can declare a new statement that starts with the `amb` keyword.
```
amb x y {
if !( x + y == 6 ) {
…
masak updated
6 years ago
-
When use ‘gumtree jsondiff soucefile1 soucefile2’ to compare two .java source file that only have two diffrent line, got 129 actions and 1208 unmatched node. I guess ignore code-commenting could solv…