OOHASHI Daichi
OOHASHI Daichi
Cf. [What is the ID field in a pdf file? - Stack Overflow](https://stackoverflow.com/questions/20085899/what-is-the-id-field-in-a-pdf-file)
After some investigation, I realized that ocaml-re does not support Unicode (https://github.com/ocaml/ocaml-re/issues/24). So pcre-ocaml + `` `UTF8`` flag would be a preferred choice. Unicode support is also required to fix...
GNU Coding Standards also suggest prepending a program name to error messages[^1] like below: ``` satysfi:path/to/azmath.saty:492.16-521.5: Type error ``` And the differences are not just cosmetic: on the one hand...
I think this and #312 could be fixed by reimplementing the lexer with [sedlex](https://github.com/ocaml-community/sedlex). Modifications needed would have large conflicts with #294, though.
> I have reimplemented SATySFi lexer with sedlex[1](#user-content-fn-1-827337b56a4abc0ab2d00151f5cf3e24). Awesome! That will be a great starting point to resolve this issue.
That compile error would be fixed by #320.
This case is roughly processed as below. 1. Function application and constructor application are left associative, so the parser recognizes `f RGB(0.1, 0.2, 0.3)` as `(f RGB) (0.1, 0.2, 0.3)`....
Great! This PR will also fixes #312. Would you mind adding parser tests about positions around multi-byte characters?
I prefer `SnocList`; as the name suggesting, it is an ordered list with 𝑂(1) append-last operation (snoc). It is a FP-jargon, but it is easy to know its meaning by...
(Or, use `Queue.t`, `Queue.add` , and `Queue.to_seq |> List.of_seq`. It is mutable, though.)