Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/hoaproject/Compiler

The Hoa\Compiler library.
https://github.com/hoaproject/Compiler

Allow to print token sequence when error occured.

7a734fadbe91a04a081bbbf8e3ca021d166df3b1 authored over 11 years ago by Ivan Enderlin <[email protected]>
Add the -s/--token-sequence option.

The -s/--token-sequence option allows to print the token sequence.

58d5acd686cbb7ce0915905212ad928a6d4c4acd authored over 11 years ago by Ivan Enderlin <[email protected]>
Add the getTokenSequence() method.

0bfae2b9406b2d461eba47d7f30b4246573bc478 authored over 11 years ago by Ivan Enderlin <[email protected]>
Save memory for tokens that match a big value.

26320b18a91a2b69177de4f93ebf77c4b3238c0a authored over 11 years ago by Ivan Enderlin <[email protected]>
Update according to previous commits.

3c10a08982c5af61b3cdb6947221b4cf38a1872a authored over 11 years ago by Ivan Enderlin <[email protected]>
Optimize lexing. #performance

We replace a call to strpos() with a modified regular expression. In
fact, “0 === strpos(…)” is ...

39e8900ef86049b95e0f064b580e8773ccb8a5e4 authored over 11 years ago by Ivan Enderlin <[email protected]>
Prevent a token that matches an empty value.

If a token matches an empty value, a Hoa\Compiler\Exception\Lexer will
be thrown.

255a4efe8f144d053526eb5390788354ff654496 authored over 11 years ago by Ivan Enderlin <[email protected]>
mv matchesLexem matchLexeme

6c68e177a20e0f76368fc312db82125297169f46 authored over 11 years ago by Ivan Enderlin <[email protected]>
Add the Hoa\Compiler\Exception\Lexer exception.

97f6999ca24bdd5026b0f6b0665832ff186d0a6d authored over 11 years ago by Ivan Enderlin <[email protected]>
Update import. #performance

9f86af40dc56d28895dfff2589efccc70de5bad7 authored over 11 years ago by Ivan Enderlin <[email protected]>
Update API documentation.

c63134f88b413cdbce75778b2fd2232e03353830 authored over 11 years ago by Ivan Enderlin <[email protected]>
Fix an error when the first token is unexpected.

767a065ddf260d8dd996679cb600b27d52bba6fb authored over 11 years ago by Ivan Enderlin <[email protected]>
Fix a typographic mistake. Thanks @CircleCode!

9dd8ff10697597c8cc9b16009e60ffd1dc2bc8cf authored over 11 years ago by Ivan Enderlin <[email protected]>
Fix an indentation error.

472e57664979c1eeec3114d0882426917caac4d8 authored over 11 years ago by Ivan Enderlin <[email protected]>
Ease rolling-release.

b62c541f3efc8b7796a7ffefb80bbcdd60d7f221 authored over 11 years ago by Ivan Enderlin <[email protected]>
Fix composer dependencies

845dfc8cdd8af92e9b219632b3e94ca1acd0e265 authored over 11 years ago by Julien BIANCHI <[email protected]>
Fix MIME type format.

4f12c41e160bc96b8924ac436e336326ffe33f5f authored over 11 years ago by Ivan Enderlin <[email protected]>
s,<ie />,<em>i.e.</em>

abf676a2daf8ca6d189c64f14f7f6939a0227dec authored over 11 years ago by Ivan Enderlin <[email protected]>
Update API documentation.

2882458e620f489c67bb8fea01fb934bc59c09a1 authored over 11 years ago by Ivan Enderlin <[email protected]>
Add french documentation.

590195800afbbaa11cf226d2c814391b4ea05a4d authored over 11 years ago by Ivan Enderlin <[email protected]>
Print only the line where the error occured.

(instead of the whole text).

86447ded23fe4f87340ebc295a8f06d2513eefa2 authored over 11 years ago by Ivan Enderlin <[email protected]>
Avoid an implicit cast.

6cf70d52265278ce3a440cf336eb4df6e0c9ef5f authored almost 12 years ago by Ivan Enderlin <[email protected]>
Propagate token namespace in the sampler.

c67519bec429a0b9d6d23a4146af99feb48a87c3 authored almost 12 years ago by Ivan Enderlin <[email protected]>
Propagation of namespaces has been moved.

Namespaces cannot be properly resolved during the analyzing of the
grammar. A token namespace is...

1f62b5762075d9683e0d893afb73aba3f4f57660 authored almost 12 years ago by Ivan Enderlin <[email protected]>
Dump namespace if different of 'default'.

c56146d0929d5b4ad46f5bab2c1640d31c43c6ff authored almost 12 years ago by Ivan Enderlin <[email protected]>
Propagate token namespaces to treenode.

Welcome to Hoa\Compiler\Llk\TreeNode::getNamespace() method.

a45ba75b14798eafd644058394cc196132f388ca authored almost 12 years ago by Ivan Enderlin <[email protected]>
Format code. #mania

6b9eaa51e960ba2597efd50c48905e58b5c12512 authored almost 12 years ago by Ivan Enderlin <[email protected]>
Better performances when lexing a big text.

Avoid copying text (even if PHP applies the COW principle
—copy-on-write—), and manipulate refer...

1a0b8b2cb056aea60ecc4ed0aad949ffdf451d57 authored almost 12 years ago by Ivan Enderlin <[email protected]>
_trace is an array instead of null by default.

8696ae14fb8e65d5d8fded05d81ec3d28dab5c09 authored almost 12 years ago by Ivan Enderlin <[email protected]>
Add -t/--trace to print trace (if exists).

d0835c3a63f27c405b45ad4a1c33f37c871924e4 authored almost 12 years ago by Ivan Enderlin <[email protected]>
Update API documentation.

c186dd66ba3359e7b05b806002c9b5723dec20b0 authored almost 12 years ago by Ivan Enderlin <[email protected]>
Happy new year \o/.

938129385d22051baa70158ac2111814e7c1589c authored almost 12 years ago by Ivan Enderlin <[email protected]>
Update link to Hoa's logo.

c02e9c5b5e84517d6b85460d4c503e334fb314fa authored about 12 years ago by Ivan Enderlin <[email protected]>
Update binary.

b32d1bcfa5b7c9ee8ae30a27b226e371cae7369c authored about 12 years ago by Ivan Enderlin <[email protected]>
Fix a typo in the README.md.

8e6dcfa79bdf8bea4adae929ffd0cbdc31c88bce authored about 12 years ago by Ivan Enderlin <[email protected]>
Replace token consumption. More clear.

ec7293626cf07e39508fa3416e56b37dadaca0e2 authored about 12 years ago by Ivan Enderlin <[email protected]>
Add the “exactly_n” operator, aka {n}.

8abf75d4f8bfedb619ba30e1c579abec61346c05 authored about 12 years ago by Ivan Enderlin <[email protected]>
Update keywords to fit Packagist formalism.

222a7100e0e6d5a8b5eaab59fa7926b52d28e0d5 authored about 12 years ago by Ivan Enderlin <[email protected]>
Update exception messages.

8895e40a014f8dd61ce6becff52f802719bb2b43 authored about 12 years ago by Ivan Enderlin <[email protected]>
Add command descriptions.

a5d661a73afd48fd16a29cc79dbf539866176ad9 authored about 12 years ago by Ivan Enderlin <[email protected]>
Update Hoa\Math.

c45a42194b3252257c5fd68d5281c9e00e9b4b6c authored about 12 years ago by Ivan Enderlin <[email protected]>
Remove an useless “continue”.

c2051590bbca553fea3eafa58bff15535724d080 authored about 12 years ago by Ivan Enderlin <[email protected]>
Node can holds options (#nodeId:options).

These options will influence how the AST is build.
Two options are already available: m (recursi...

68b814fee0ff74924cdc8c49124505533779fa7f authored about 12 years ago by Ivan Enderlin <[email protected]>
Add full support of Unicode.

0183632d327fb9651e400fb8394f7eada8a9ac99 authored over 12 years ago by Ivan Enderlin <[email protected]>
TreeNode can access to its parent (if exists).

Sometimes, it is convenient to access to the parent of the current node
in the AST. Use the getP...

5a40eb4f7dd0577ece0d602e2f12f9ada58409b1 authored over 12 years ago by Ivan Enderlin <[email protected]>
Add README.md.

a61c3e14a57d7c9679a2ae0385408d2d0f1d5029 authored over 12 years ago by Ivan Enderlin <[email protected]>
Add composer.json.

237e88100094a099e9903553cb0cef18bbd23e5b authored over 12 years ago by Ivan Enderlin <[email protected]>
Update dependency to sampler.

3ff6bf1ef538d6f5a92f84593aedaa8fced28477 authored over 12 years ago by Ivan Enderlin <[email protected]>
Restore Bin/.

aa3139d491fe5fcdfc4f24a316e83dc4e023ba6a authored over 12 years ago by Ivan Enderlin <[email protected]>
Libification (split from Central).

f8b26bf191ebe416679a336b3f66a991e72edf6e authored over 12 years ago by Ivan Enderlin <[email protected]>
Make first argument optional (use the root rule).

9e48dd776ef853c21357a29ea137f7e771f93d41 authored over 12 years ago by Ivan Enderlin <[email protected]>
Fix a typo in an inline documentation.

2157a322cafc3858461dd96b7963f83a66aa1303 authored over 12 years ago by Ivan Enderlin <[email protected]>
Use \Hoa\Math\Combinatorics\Combination\Γ (iterator) instead of \Hoa\Math\Combinatorics\Combination::Γ (function) to prevent memory limit.

eed3f681b182999e1ef89604990a38ed304b69a3 authored over 12 years ago by Ivan Enderlin <[email protected]>
Remove \Hoa\Iterator from \Hoa\Compiler\Llk\Sampler and re-implement it only on \Hoa\Compiler\Llk\Sampler\Coverage and \Hoa\Compiler\Llk\Sampler\BoundedExhaustive.

4cf02755a40b0fc79ef290976d942e72f7f3f929 authored over 12 years ago by Ivan Enderlin <[email protected]>
Remove useless code (oops) and add API documentation.

18d84f352d871815ccc868eec2c5753d78c6b8c6 authored over 12 years ago by Ivan Enderlin <[email protected]>
Restore the random and uniform generation algorithms \o/.

168717d7b8c621a960019599a217f506a3c097dd authored over 12 years ago by Ivan Enderlin <[email protected]>
Add the \Hoa\Compiler\Llk\Parser::getRule() method.

57d71cc14e04ed82165fb8c90e19eaeb0c67cd3c authored over 12 years ago by Ivan Enderlin <[email protected]>
Reintroduce the bounded-exhaustive algorithm!

Example of usage:

from('Hoa')
-> import('File.Read')
-> import('Compiler.Llk.~')
-> import('Comp...

63fc89d489076bc13770d6c9cb0b1bd98482ac22 authored over 12 years ago by Ivan Enderlin <[email protected]>
Update API documentation.

c669846d679bbf8ab3b8d3e91e1a290bc4278f69 authored over 12 years ago by Ivan Enderlin <[email protected]>
Fix a bug with default node ID.

Take the grammar hoa://Library/Json/Grammar.pp as example, with the rule:
#array:
::b...

bc39eece59fa8283916b84631ecde34aeded128e authored over 12 years ago by Ivan Enderlin <[email protected]>
Format code. #mania

52aaf13f245734b968e58cef6d629731f5883e2c authored over 12 years ago by Ivan Enderlin <[email protected]>
Format code. #mania

73b94656e4bcc0d6d0694d9e2789b073fc2a634d authored over 12 years ago by Ivan Enderlin <[email protected]>
Format code: move constant to left-side of operators. #mania

d82c0d875ce663da9d678e75e29fb59fc8487bdc authored over 12 years ago by Ivan Enderlin <[email protected]>
Oops, start iterator from 0, not 1.

17cb3470bf76cc53da2c13df6b5cefb1d9733dd9 authored over 12 years ago by Ivan Enderlin <[email protected]>
Implement \Hoa\Iterator, remove the generate() abstract method and store the root rule name.

39d61c54685d157e0e93baa821fed4aa65176463 authored over 12 years ago by Ivan Enderlin <[email protected]>
Final version of the coverage algorithm! It's no more a visitor but a sampler (other visitors are following).

5a8eb18d167770cfdaa38a5d9376bea7a8ea6da0 authored over 12 years ago by Ivan Enderlin <[email protected]>
Move up Frédéric Dadeau in the list of authors.

175611e1419dd97172353176203d9d1b70c40b9e authored over 12 years ago by Ivan Enderlin <[email protected]>
Format code. #mania

231fd2a9c79f18dde5ba20398fdb0aa9fa106ae8 authored over 12 years ago by Ivan Enderlin <[email protected]>
Add the getAST() lazy method.

626e126e17163d44f1ac3afc956d9c447ea76565 authored over 12 years ago by Ivan Enderlin <[email protected]>
Update according to changeset #2155 and #2156.

988c7b41668c4242b7beac773a0d1d1619e6a62e authored over 12 years ago by Ivan Enderlin <[email protected]>
Import the transitional concept from invocation rule in regular rule.

3c500292685bd594e943aa84a3d66fb37438ab26 authored over 12 years ago by Ivan Enderlin <[email protected]>
Remove an heuristic and consider previous commit.

f19760fc8c38bd29dc294073ed2d5fd27abdbb4a authored over 12 years ago by Ivan Enderlin <[email protected]>
Make difference between name and token name. Add the getTokenName() method.

3a8a6443a5781ba57710dd62788c3413a3420de7 authored over 12 years ago by Ivan Enderlin <[email protected]>
Remove useless attribute _errorState and format code. #mania

f7a2fb83e96cb2eea88fb3c2cdfbbd7e4ed6b055 authored over 12 years ago by Ivan Enderlin <[email protected]>
Format code. #mania

30139595ae5552b9f7c2f67a6fff978bd299c64f authored over 12 years ago by Ivan Enderlin <[email protected]>
Prevent if no %skip has been declared.

d23921f56ff9b18c266297211e7fb6a7085a0e43 authored over 12 years ago by Ivan Enderlin <[email protected]>
Remove a test on skip token and update API documentation.

dbe72adce1089d2caacba7fdd583670dc8fcca42 authored over 12 years ago by Ivan Enderlin <[email protected]>
Update according to the new grammar nodes and LL(k) classes.

5dc17eccff74be05ccd70ce2ecdce932f3414be9 authored over 12 years ago by Ivan Enderlin <[email protected]>
Update generic visitor.

3c3dad1bc2c089f77489e0c4499e93f3dde0d6c6 authored over 12 years ago by Ivan Enderlin <[email protected]>
Remove old LL(k) compiler.

c23a5a563a6167726f3bce6cfd001eb6197e9030 authored over 12 years ago by Ivan Enderlin <[email protected]>
Update algorithms according to the new PP grammar.

d9893974cfb1a5fd91f1431052c5c6eef6b0f228 authored over 12 years ago by Ivan Enderlin <[email protected]>
Fix exceptions.

f560a15d732ab390aa9509fd05422c10b3d5f85c authored over 12 years ago by Ivan Enderlin <[email protected]>
Add getTokens(), getRules() and getRootRule() methods.

a56dde486e88d8396b42ab5a0dd1a3b7510f4cab authored over 12 years ago by Ivan Enderlin <[email protected]>
Add PP representation data.

24aa40047bd76bd0a76315e3cdb601c7906b0c2d authored over 12 years ago by Ivan Enderlin <[email protected]>
Add the UnexpectedToken exception.

4278d9f9ac409a46b007eef13e8e9d2ad6661097 authored over 12 years ago by Ivan Enderlin <[email protected]>
Restore all generators: uniform (recursive method), bounded-exaustive and coverage.

dda2f40edc88368effb4b2a141316a00b4b2a04c authored over 12 years ago by Ivan Enderlin <[email protected]>
Restore unification in PP, e.g. with a Palindrome.pp grammar:

%skip s \s
%token q \w

#rule:
( <q[0]> rule()? ::q[0]:: )*

and in a shell...

b376cf130c39eed59e363bedad3ea5e926dca4f6 authored over 12 years ago by Ivan Enderlin <[email protected]>
Add depth and transitional data.

0c1f8158daf6fb2192b3d19927cc6f29374624f2 authored over 12 years ago by Ivan Enderlin <[email protected]>
Parse unification in PP.

f9199cfb1e2bb8946c58223038ce917be5224a7c authored over 12 years ago by Ivan Enderlin <[email protected]>
Remove the set and get -DepthInTrace() methods.

7402ece9d35a246f0042b8dccf47fab1028cd630 authored over 12 years ago by Ivan Enderlin <[email protected]>
Update API documentation.

132074e2dc00fd36353bcf86153fbabf19db8265 authored almost 13 years ago by Ivan Enderlin <[email protected]>
Force the declaration of default:skip only.

06ff4790960d42e8a2aae1fca064242904636247 authored almost 13 years ago by Ivan Enderlin <[email protected]>
Restore a deleted useful code… #regression

abd3dab18676b0c8681ae525de4d69d975141f9a authored almost 13 years ago by Ivan Enderlin <[email protected]>
Fix a bug while backtracking.

d02df2a0edc2e9dc83295f2df20876ac4e8166c4 authored almost 13 years ago by Ivan Enderlin <[email protected]>
Write API documentation.

b7dab2caac470f10f3192f12240e18481dee25d8 authored almost 13 years ago by Ivan Enderlin <[email protected]>
Do not overwrite rule name when it contains only one token, like this: “rule: <token>”, and remove an old code about node ID.

90a589abf9ffd62ec27fd4a8bab74fbc15fb0951 authored almost 13 years ago by Ivan Enderlin <[email protected]>
Write API documentation.

e207da6d9ea3279bc47cc7191260a1f4ddd858ac authored almost 13 years ago by Ivan Enderlin <[email protected]>
When a skip token is matched, it doesn't let any chance to another tokens to match instead.

215791163976e273ac9bfe4f00d0b30f9b12922a authored almost 13 years ago by Ivan Enderlin <[email protected]>
Prevent when AST cannot be build (rare case).

34453f2a96e75d0a2aff3edca08cc1158593273e authored almost 13 years ago by Ivan Enderlin <[email protected]>
Force the declaration of a *:skip token.

352184a1728d5e24c9f13c50540f8ae945b99b47 authored almost 13 years ago by Ivan Enderlin <[email protected]>