-
https://swexpertacademy.com/main/talk/solvingClub/problemView.do?solveclubId=AZC_w6Z6yygDFAQW&contestProbId=AV5PyTLqAf4DFAUq&probBoxId=AZDJPc6a-dsDFAVs&type=PROBLEM&problemBoxTitle=1d_practice&problem…
-
```
expr -memoize
= #STATE{ state["any"] = 1; } expr "a"
/ "b"
```
Since this changes the state of the cursor just before recursing into `expr`, and since memoization is used as an implementation…
-
[Accepted Proposal](https://github.com/ziglang/zig/issues/1006#issuecomment-534660820)
-----
If we solve #157 then we'll know at compile-time the maximum stack usage of the entire call graph.
…
-
### Code
```Rust
#![feature(return_type_notation)]
#![feature(generic_associated_types_extended)]
#![feature(trivial_bounds)]
trait HealthCheck {
async fn check() -> bool;
}
async fn do_healt…
-
There's only one rule, so there cannot be mutual recursion of any kind afaik.
```
grammar Repro;
expr[int a]
:{0 < $a}? 'thing'
|{1 < $a}? expr[1] '!'
;
```
Expected behavior: the rule is re…
-
With #5711 we get built-in types that are either [on par](https://github.com/IntersectMBO/plutus/pull/5486#issuecomment-1808544340) with SOPs or are even [faster](https://github.com/IntersectMBO/plutu…
-
Right recursion runs in quadratic time with the Earley parser on grammars that can be parsed in linear time by LR(k) parsers. Ideally we should optimize the parser, but for the time being, grammars sh…
-
A simple term rule:
```
term[int priority]
: simpleTerm
| term[$priority - 1]
;
```
will throw cannot find rule grammarSpec error. Removing the direct left recursion removes the error.
-
# Study Notes
**coding exercise**
1. Do exercise for each problem at least 5 times
1. Time box for each problem, if no idea, just start read solution or discuss. Try to understand the solution…
-
I've just added this project grammar to https://mingodad.github.io/parsertl-playground/playground/ (select `Protobuf3 parser` under examples then click `Parse` to see the parser tree).
I hope it ca…