Dimi Racordon

Results 41 comments of Dimi Racordon

Thanks for your answer! > This sounds like it might be an interesting addition, if there is a good data structure for it. Great! > This line of thinking leads...

Is this close to what you had in mind for the slab allocator? https://gist.github.com/kyouko-taiga/7b6e58cfc8bc56d43ef520bdf26919b9 - The collection is implemented as an array of buffers (which I called buckets), laid out...

The current implementation uses a custom data structure as it parses declarations to configure scopes (i.e., assign `Decl.parentDeclSpace`). Would it be possible to reproduce that behavior with Citron? I'm also...

What would be the input language?

I ended up using a completely different approach (see [here](https://github.com/kyouko-taiga/anzen/blob/7648b6236d051afc9e91f3249e7314c1731d9963/Sources/AnzenLib/Parser.swift#L119-L125)) consisting of parsing "trailer" expressions. There are comments in the code. The `suffixed(by:)` approach looks more elegant though. So if...

Copied as is directly from [my tests](https://github.com/kyouko-taiga/LogicKit/blob/d7d17eed2102e2033dcc4ed5498cb7aebbd83bda/Tests/LogicKitParserTests/LogicKitParserTests.swift#L64-L67) (actually the syntax is identical to Swift's): - For two terms, the input is `.var("x") && .var("y")`. - For three, the input is...

LogicKit should be thread safe. The library doesn't use any concurrent mechanism internally.

Maybe I wasn't so clear. Let's say I write `a@user`, then the regexp will not consider the `@user` substring a username, and thus the parser won't create a link tag....

Yes, I saw his pull request, as well as his struggle with this very problem. I'm looking forward to hearing from you once you got an eye on this issue.

Here is an example of how to do it: https://github.com/val-lang/val/blob/b886b7bfa14e8ecb711f326a8003a0f7f37c17b9/Tests/ValTests/TypeCheckerTests.swift#L2033-L2042