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
7a734fadbe91a04a081bbbf8e3ca021d166df3b1 authored over 11 years ago by Ivan Enderlin <[email protected]>
The -s/--token-sequence option allows to print the token sequence.
58d5acd686cbb7ce0915905212ad928a6d4c4acd authored over 11 years ago by Ivan Enderlin <[email protected]>0bfae2b9406b2d461eba47d7f30b4246573bc478 authored over 11 years ago by Ivan Enderlin <[email protected]>
26320b18a91a2b69177de4f93ebf77c4b3238c0a authored over 11 years ago by Ivan Enderlin <[email protected]>
3c10a08982c5af61b3cdb6947221b4cf38a1872a authored over 11 years ago by Ivan Enderlin <[email protected]>
We replace a call to strpos() with a modified regular expression. In
fact, “0 === strpos(…)” is ...
If a token matches an empty value, a Hoa\Compiler\Exception\Lexer will
be thrown.
6c68e177a20e0f76368fc312db82125297169f46 authored over 11 years ago by Ivan Enderlin <[email protected]>
97f6999ca24bdd5026b0f6b0665832ff186d0a6d authored over 11 years ago by Ivan Enderlin <[email protected]>
9f86af40dc56d28895dfff2589efccc70de5bad7 authored over 11 years ago by Ivan Enderlin <[email protected]>
c63134f88b413cdbce75778b2fd2232e03353830 authored over 11 years ago by Ivan Enderlin <[email protected]>
767a065ddf260d8dd996679cb600b27d52bba6fb authored over 11 years ago by Ivan Enderlin <[email protected]>
9dd8ff10697597c8cc9b16009e60ffd1dc2bc8cf authored over 11 years ago by Ivan Enderlin <[email protected]>
472e57664979c1eeec3114d0882426917caac4d8 authored over 11 years ago by Ivan Enderlin <[email protected]>
b62c541f3efc8b7796a7ffefb80bbcdd60d7f221 authored over 11 years ago by Ivan Enderlin <[email protected]>
845dfc8cdd8af92e9b219632b3e94ca1acd0e265 authored over 11 years ago by Julien BIANCHI <[email protected]>
4f12c41e160bc96b8924ac436e336326ffe33f5f authored over 11 years ago by Ivan Enderlin <[email protected]>
abf676a2daf8ca6d189c64f14f7f6939a0227dec authored over 11 years ago by Ivan Enderlin <[email protected]>
2882458e620f489c67bb8fea01fb934bc59c09a1 authored over 11 years ago by Ivan Enderlin <[email protected]>
590195800afbbaa11cf226d2c814391b4ea05a4d authored over 11 years ago by Ivan Enderlin <[email protected]>
(instead of the whole text).
86447ded23fe4f87340ebc295a8f06d2513eefa2 authored over 11 years ago by Ivan Enderlin <[email protected]>6cf70d52265278ce3a440cf336eb4df6e0c9ef5f authored almost 12 years ago by Ivan Enderlin <[email protected]>
c67519bec429a0b9d6d23a4146af99feb48a87c3 authored almost 12 years ago by Ivan Enderlin <[email protected]>
Namespaces cannot be properly resolved during the analyzing of the
grammar. A token namespace is...
c56146d0929d5b4ad46f5bab2c1640d31c43c6ff authored almost 12 years ago by Ivan Enderlin <[email protected]>
Welcome to Hoa\Compiler\Llk\TreeNode::getNamespace() method.
a45ba75b14798eafd644058394cc196132f388ca authored almost 12 years ago by Ivan Enderlin <[email protected]>6b9eaa51e960ba2597efd50c48905e58b5c12512 authored almost 12 years ago by Ivan Enderlin <[email protected]>
Avoid copying text (even if PHP applies the COW principle
—copy-on-write—), and manipulate refer...
8696ae14fb8e65d5d8fded05d81ec3d28dab5c09 authored almost 12 years ago by Ivan Enderlin <[email protected]>
d0835c3a63f27c405b45ad4a1c33f37c871924e4 authored almost 12 years ago by Ivan Enderlin <[email protected]>
c186dd66ba3359e7b05b806002c9b5723dec20b0 authored almost 12 years ago by Ivan Enderlin <[email protected]>
938129385d22051baa70158ac2111814e7c1589c authored almost 12 years ago by Ivan Enderlin <[email protected]>
c02e9c5b5e84517d6b85460d4c503e334fb314fa authored about 12 years ago by Ivan Enderlin <[email protected]>
b32d1bcfa5b7c9ee8ae30a27b226e371cae7369c authored about 12 years ago by Ivan Enderlin <[email protected]>
8e6dcfa79bdf8bea4adae929ffd0cbdc31c88bce authored about 12 years ago by Ivan Enderlin <[email protected]>
ec7293626cf07e39508fa3416e56b37dadaca0e2 authored about 12 years ago by Ivan Enderlin <[email protected]>
8abf75d4f8bfedb619ba30e1c579abec61346c05 authored about 12 years ago by Ivan Enderlin <[email protected]>
222a7100e0e6d5a8b5eaab59fa7926b52d28e0d5 authored about 12 years ago by Ivan Enderlin <[email protected]>
8895e40a014f8dd61ce6becff52f802719bb2b43 authored about 12 years ago by Ivan Enderlin <[email protected]>
a5d661a73afd48fd16a29cc79dbf539866176ad9 authored about 12 years ago by Ivan Enderlin <[email protected]>
c45a42194b3252257c5fd68d5281c9e00e9b4b6c authored about 12 years ago by Ivan Enderlin <[email protected]>
c2051590bbca553fea3eafa58bff15535724d080 authored about 12 years ago by Ivan Enderlin <[email protected]>
These options will influence how the AST is build.
Two options are already available: m (recursi...
0183632d327fb9651e400fb8394f7eada8a9ac99 authored over 12 years ago by Ivan Enderlin <[email protected]>
Sometimes, it is convenient to access to the parent of the current node
in the AST. Use the getP...
a61c3e14a57d7c9679a2ae0385408d2d0f1d5029 authored over 12 years ago by Ivan Enderlin <[email protected]>
237e88100094a099e9903553cb0cef18bbd23e5b authored over 12 years ago by Ivan Enderlin <[email protected]>
3ff6bf1ef538d6f5a92f84593aedaa8fced28477 authored over 12 years ago by Ivan Enderlin <[email protected]>
aa3139d491fe5fcdfc4f24a316e83dc4e023ba6a authored over 12 years ago by Ivan Enderlin <[email protected]>
f8b26bf191ebe416679a336b3f66a991e72edf6e authored over 12 years ago by Ivan Enderlin <[email protected]>
9e48dd776ef853c21357a29ea137f7e771f93d41 authored over 12 years ago by Ivan Enderlin <[email protected]>
2157a322cafc3858461dd96b7963f83a66aa1303 authored over 12 years ago by Ivan Enderlin <[email protected]>
eed3f681b182999e1ef89604990a38ed304b69a3 authored over 12 years ago by Ivan Enderlin <[email protected]>
4cf02755a40b0fc79ef290976d942e72f7f3f929 authored over 12 years ago by Ivan Enderlin <[email protected]>
18d84f352d871815ccc868eec2c5753d78c6b8c6 authored over 12 years ago by Ivan Enderlin <[email protected]>
168717d7b8c621a960019599a217f506a3c097dd authored over 12 years ago by Ivan Enderlin <[email protected]>
57d71cc14e04ed82165fb8c90e19eaeb0c67cd3c authored over 12 years ago by Ivan Enderlin <[email protected]>
Example of usage:
from('Hoa')
-> import('File.Read')
-> import('Compiler.Llk.~')
-> import('Comp...
c669846d679bbf8ab3b8d3e91e1a290bc4278f69 authored over 12 years ago by Ivan Enderlin <[email protected]>
Take the grammar hoa://Library/Json/Grammar.pp as example, with the rule:
#array:
::b...
52aaf13f245734b968e58cef6d629731f5883e2c authored over 12 years ago by Ivan Enderlin <[email protected]>
73b94656e4bcc0d6d0694d9e2789b073fc2a634d authored over 12 years ago by Ivan Enderlin <[email protected]>
d82c0d875ce663da9d678e75e29fb59fc8487bdc authored over 12 years ago by Ivan Enderlin <[email protected]>
17cb3470bf76cc53da2c13df6b5cefb1d9733dd9 authored over 12 years ago by Ivan Enderlin <[email protected]>
39d61c54685d157e0e93baa821fed4aa65176463 authored over 12 years ago by Ivan Enderlin <[email protected]>
5a8eb18d167770cfdaa38a5d9376bea7a8ea6da0 authored over 12 years ago by Ivan Enderlin <[email protected]>
175611e1419dd97172353176203d9d1b70c40b9e authored over 12 years ago by Ivan Enderlin <[email protected]>
231fd2a9c79f18dde5ba20398fdb0aa9fa106ae8 authored over 12 years ago by Ivan Enderlin <[email protected]>
626e126e17163d44f1ac3afc956d9c447ea76565 authored over 12 years ago by Ivan Enderlin <[email protected]>
988c7b41668c4242b7beac773a0d1d1619e6a62e authored over 12 years ago by Ivan Enderlin <[email protected]>
3c500292685bd594e943aa84a3d66fb37438ab26 authored over 12 years ago by Ivan Enderlin <[email protected]>
f19760fc8c38bd29dc294073ed2d5fd27abdbb4a authored over 12 years ago by Ivan Enderlin <[email protected]>
3a8a6443a5781ba57710dd62788c3413a3420de7 authored over 12 years ago by Ivan Enderlin <[email protected]>
f7a2fb83e96cb2eea88fb3c2cdfbbd7e4ed6b055 authored over 12 years ago by Ivan Enderlin <[email protected]>
30139595ae5552b9f7c2f67a6fff978bd299c64f authored over 12 years ago by Ivan Enderlin <[email protected]>
d23921f56ff9b18c266297211e7fb6a7085a0e43 authored over 12 years ago by Ivan Enderlin <[email protected]>
dbe72adce1089d2caacba7fdd583670dc8fcca42 authored over 12 years ago by Ivan Enderlin <[email protected]>
5dc17eccff74be05ccd70ce2ecdce932f3414be9 authored over 12 years ago by Ivan Enderlin <[email protected]>
3c3dad1bc2c089f77489e0c4499e93f3dde0d6c6 authored over 12 years ago by Ivan Enderlin <[email protected]>
c23a5a563a6167726f3bce6cfd001eb6197e9030 authored over 12 years ago by Ivan Enderlin <[email protected]>
d9893974cfb1a5fd91f1431052c5c6eef6b0f228 authored over 12 years ago by Ivan Enderlin <[email protected]>
f560a15d732ab390aa9509fd05422c10b3d5f85c authored over 12 years ago by Ivan Enderlin <[email protected]>
a56dde486e88d8396b42ab5a0dd1a3b7510f4cab authored over 12 years ago by Ivan Enderlin <[email protected]>
24aa40047bd76bd0a76315e3cdb601c7906b0c2d authored over 12 years ago by Ivan Enderlin <[email protected]>
4278d9f9ac409a46b007eef13e8e9d2ad6661097 authored over 12 years ago by Ivan Enderlin <[email protected]>
dda2f40edc88368effb4b2a141316a00b4b2a04c authored over 12 years ago by Ivan Enderlin <[email protected]>
%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]>0c1f8158daf6fb2192b3d19927cc6f29374624f2 authored over 12 years ago by Ivan Enderlin <[email protected]>
f9199cfb1e2bb8946c58223038ce917be5224a7c authored over 12 years ago by Ivan Enderlin <[email protected]>
7402ece9d35a246f0042b8dccf47fab1028cd630 authored over 12 years ago by Ivan Enderlin <[email protected]>
132074e2dc00fd36353bcf86153fbabf19db8265 authored almost 13 years ago by Ivan Enderlin <[email protected]>
06ff4790960d42e8a2aae1fca064242904636247 authored almost 13 years ago by Ivan Enderlin <[email protected]>
abd3dab18676b0c8681ae525de4d69d975141f9a authored almost 13 years ago by Ivan Enderlin <[email protected]>
d02df2a0edc2e9dc83295f2df20876ac4e8166c4 authored almost 13 years ago by Ivan Enderlin <[email protected]>
b7dab2caac470f10f3192f12240e18481dee25d8 authored almost 13 years ago by Ivan Enderlin <[email protected]>
90a589abf9ffd62ec27fd4a8bab74fbc15fb0951 authored almost 13 years ago by Ivan Enderlin <[email protected]>
e207da6d9ea3279bc47cc7191260a1f4ddd858ac authored almost 13 years ago by Ivan Enderlin <[email protected]>
215791163976e273ac9bfe4f00d0b30f9b12922a authored almost 13 years ago by Ivan Enderlin <[email protected]>
34453f2a96e75d0a2aff3edca08cc1158593273e authored almost 13 years ago by Ivan Enderlin <[email protected]>
352184a1728d5e24c9f13c50540f8ae945b99b47 authored almost 13 years ago by Ivan Enderlin <[email protected]>