Closed Metalaka closed 9 years ago
Thanks for the PR. I am asking a peer-review from @CircleCode and @Savageman.
ping?
Rebased, Can be merged when the review is done.
@Metalaka Could you rebase this PR please? Sorry for the too long delay…
Rebase & cs-fixer done.
I tested with the following example http://hoa-project.net/Literature/Hack/Compiler.html#Uniform_random_generation. Here is one of the possible result:
0 => [�[�false�]�,�true�]�
1 => [�0e-631�,�true�,�-339�]�
2 => [�false�,�false�,�0.545406�]�
3 => [�[�"FH'ga'"�]�]�
4 => [�"�aKq3�"�,�false�]�
5 => [�[�false�]�,�true�]�
6 => [�false�,�[�true�]�]�
7 => [�null�,�null�,�true�]�
8 => [�[�[�null�]�]�]�
9 => [�[�[�false�]�]�]�
Two issues:
_skipToken
attribute when the generation is over.\s
?
- We must visit the skip token each time, not only once.
- Maybe we can empty/destruct the _skipToken attribute when the generation is over.
So instead of caching the result string, we can cache the token and return $this->_tokenSampler->visit($token->getAST());
.
- What is this skip token :stuck_out_tongue:? Is it a valid value for \s?
Yes it is.
@Hywan Your �
(à
is displayed on Win OS cli) character is the "non-breaking space" character (\x00A0) with a wrong encoding.
See test: http://3v4l.org/MATQg and https://github.com/hoaproject/Regex/pull/21
Excellent. Just update your commit messages as you did on Hoa\Regex
and I will merge them!
Tests are broken though :negative_squared_cross_mark:.
Before merging this one, we must merge https://github.com/hoaproject/Json/pull/11.
With https://github.com/hoaproject/Json/pull/11, https://github.com/hoaproject/Json/pull/12 and this PR everything seem good.
Thanks for PRs on Hoa\Json
.
@Metalaka Going to re-check tomorrow with hoaproject/Json#11 and hoaproject/Json#12 merged. Thanks!
Thanks for this PR! Awesome job, as usual 😎.
Thanks :)
Fix #26