Naoya Hatta

Results 272 comments of Naoya Hatta

Unfortunately, rewriting AST is difficult in the current implementation. This is because all node is based on `Locate` including only positional information in the source code. ```rust #[derive(Copy, Clone, Default,...

I have no idea about building new modifiable syntax tree crate on sv-parser. Copying all syntax definition may be required. Instead of it, extending sv-parser may be reasonable. For example,...

Thank you for your contribution! I forgot the detailed usage of nom, could you use nested `alt` to avoid the element limit like below? ``` let ret = alt(( alt((...

`VmRss` columns is mem usage by size. You can try `procs --use-config large`, and add `VmRss` column through your configuration.

There are some ideas. 1. Merging `Expression` and `TypeExpression` This simplify each call site of `Expression`, but the definition of `Expression` becomes more difficult to analyze. For example, `X[1]` may...

> I think 2 is a simple and good solution, but I don't really want to write `type` keyword. How about implementing 2 once, and making it possible to omit...

> This is a limitation of Parol, yes? Is there no way to force it to parse an ambiguous grammar, and then make the correct choice between TypeExpression vs Expression...

Especially I like `` because it seems to be consistent with type generics syntax `::`.

Unfortunatly, `` can't be used because `>>` of `` is interpreted as right shift operator. So now `[]` is a candidate. There is another idea `:`. It is consistent with...

My concern about `[]` is that it is used as array in many programming languages including Veryl itself. For example, `[logic]` is looked like `logic`'s array type.