Jakub Narebski
- About: I read Perl blogs.
Recent Actions
-
Commented on Count-up to 100 CPAN Distributions: Test-XML-Ordered, SDLx-Betweener, and more
Why generate a tool to write/generate recursive descent parsers instead of using Marpa and its ecosystem?...
-
Commented on Sparklines in Excel::Writer::XLSX
Didn't Micro$oft patented sparklines (thanks to broken patent system)?...
-
Commented on A Marpa paper
Slightly off-topic: I have just read in article about LibreOffice 3.5 that it includes "Lightproof, a language-neutral grammatical analysis tool that is implemented in Python and has a sophisticated regex-based rule system.". I wonder if proper parser would be not...
-
Commented on On defined(@array) and defined(%hash)
There is always autovivify pragma (usually used as no autovivify 'something') to avoid autovivification......
-
Commented on QR Code FAQ
Hmmm... would such zigzag be enough taking into account error correction features of QR codes?...
-
Commented on Marpa and OO
I wonder how in current Marpa::XS, and future Marpa::OO would "code reuse" look like. There are cases where you want to use the same grammar to drive different output, e.g. parse C declaration and: create equivalent of h2xs - convert...
-
Commented on Developing parsers incrementally with Marpa
I have read it somewhere that C++ has undecidable grammar. Does it mean that it cannot be parsed using Marpa?...
-
Commented on What! No Lexer?
@Jeffrey: Thanks for response. What would be nice to have is to have among Marpa documentation full example of generating lexer and parses, for example out of description in some Internet RFC (email address perhaps?). BTW. I wonder how hard...
-
Commented on A new web site for Marpa
By the way, shouldn't Marpa::XS POD include link to said official web site for Marpa? If it is there, and I have just not found it, sorry for confusion....
-
Commented on What! No Lexer?
Well, I don't know if there is language like BNF / ABNF for describing tokens, or whether BNF can be used for that, but automatic generation of lexer from rules is what I meant when asking about lexer....
-
Commented on A new web site for Marpa
Very nice! Now only to have something similar for creating tokenizers (lex) like Marpa is for creating parsers (yacc)......
-
Commented on Perl Calltrace
Or Dir::Self...
-
Commented on How to parse HTML, part 2
Would parsing C (or at least C declarations), for example to generate bindings to other language, be a good application of Marpa?...
-
Commented on Dist::Zilla, Pod::Weaver and bin
I wonder if having separate script.sh.pod file with POD would work......
-
Commented on What is the Marpa algorithm?
Perhaps you could publish your "Ruby Slippers" algorithm too?...
-
Commented on Marpa v. Perl regexes: some numbers
@Jeffrey Kegler: Could you include loglog plot of results, i.e. logarithmic x axis with size, logarithmic y axis with time (perhaps with more data points than in table). From the slope of lines one can easily read if for given...
-
Commented on How do you select the best installed version?
inc::latest...
Comment Threads
-
Ovid commented on
Dist::Zilla, Pod::Weaver and bin
I also found this via Google in trying to figure this out. Thanks!
-
Shlomi Fish commented on
Count-up to 100 CPAN Distributions: Test-XML-Ordered, SDLx-Betweener, and more
I should note that in general, I have yet to study Marpa extensively (though I looked into it a bit). One thing I dislike about it is that it still requires a separate tokenising/lexing stage instead of allowing one to use regular expressions for tokens/terminals, which is what Parse::RecDescent and Parser::MGC allow.
Another aspect of Parser::MGC that I like is its transperency, and the fact I don't have to put my grammar in one big string, and instead write it piecemeal using a combination of OOP and inheritance and using closures. I …
-
Shlomi Fish commented on
Count-up to 100 CPAN Distributions: Test-XML-Ordered, SDLx-Betweener, and more
Replying to myself, I would like to note that the Marpa scanless interface was announced, so it's one less reason for me not to use it. Thanks!
-
stevemadden commented on
On defined(@array) and defined(%hash)
Hi Reini, hi all, very sorry to jump in that way, but even after reading this articles many times I can't find a way to solve my pb with defined.
with perl 5.10 , defined does the trick, but now I updated to 5.16, my script is broken.
My script take a hash of hash and dump its archite… -
gonzo commented on
On defined(@array) and defined(%hash)
blogs.perl.org is a blogging platform, no support forum. You should generally consider to ask questions on other platforms, like stackoverflow or perlmonks.
To determine of what type a reference is (in Perl5 all nested data structures consist of references) you need to use the "ref" builtin (see perldoc -f ref or here: http://perldoc.perl.org/functions/ref.html ).
I took the liberty of rewriting your code a bit, so it conforms to recent best practices a little more:
sub dump_hash {
my ($hashn…
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.