Something went wrong. Try again.
A random C++ monorepo.
Something went wrong. Try again.
Files
Verified signature Signed by huy55465.tngl.sh SHA256:MxwWp27oyYRlGFCWw1JfhVnEQbE04kTRiSlLbvstW60 Click to copy SHA
Verified signature Signed by huy55465.tngl.sh SHA256:MxwWp27oyYRlGFCWw1JfhVnEQbE04kTRiSlLbvstW60 Click to copy SHA
Verified signature Signed by huy55465.tngl.sh SHA256:MxwWp27oyYRlGFCWw1JfhVnEQbE04kTRiSlLbvstW60 Click to copy SHA
- C++ 80%
- CMake 17%
- Nix 2%
- Shell <1%
- Python <1%
README.md
randomssg #
- Originally planned to be a C++ rewrite of the Rust SSG I had that was not
working, but I decided now it's a monorepo of random C++ stuff. The name sticks
though, as it's quite painful to go change each and every mention of
randomssg.
Included "libraries" #
pscombi #
[!WARN] Technically functioning, but using this feels very cursed.
- Combine your parsers!
- I should have learned Haskell...
- Checklist:
-
- Scratchpad for Sequence parser.
-
- So, I forced to provide a different base-case parser.
- That frees them from one common left-recursive skill-issue, but doesn't save from all.
-
-
- Case: primary ::= number | "(" expr ")"
-
- More precisely, a struct-for-
Recnested inside another struct-for-Rec.
- More precisely, a struct-for-
- At this point, we can parse
LL(k)grammar now?
-
- When OutputType is UnknownType, a lot of the parsers assume the OutputIter's type is the same as that of the input range's elements. Which is not always true, especially as we move on to add transformers.
- We'll have to determine the output type at
matchcall site. - So, we need to change
OutputTypeinside each parser to something like:
template <typename InputType> using OutputType = /* some definition based on InputType, or InvalidType (we'll rename UnknownType to). */; -
- Technically not a parser...
-
- Gonna be helpful to deal with left/right associativity.
- Left fold is simple(r). How would I right-fold?
-
- All constituent parsers must only output 1 value.
-