in reply to Re: using perlsyntax for other languages?
in thread using perlsyntax for other languages?

Since my intention is not to emulate perl but to reuse perl syntax with foreign semantics.

B::CC tries to emulate all Perl semantics , I just wanna use Perl's syntax to write a foreign code.

The complication of B::CC is the goal that running the perl-interpreter produces in details the same result with the same code ...

But thats not realistic, I'd rather prefer throwing errors when not easily implementable features are requested.

For instance a really easy thing like if () {} else {} has plenty of flavors in lisp to avoid parens, that could be simplified.

Cheers Rolf

Replies are listed 'Best First'.
Re^3: using perlsyntax for other languages?
by ikegami (Patriarch) on Apr 16, 2010 at 16:29 UTC
    I didn't mention B:CC???

    Since my intention is not to emulate perl but to reuse perl syntax with foreign semantics

    So you want a Perl tokenizer or parser. On both counts, the answer is PPI.

    Update: Mentioned PPI.
    Update: Mentioned tokenizer.

      >I didn't mention B:CC???

      No you didn't ... I did !x3

      BTW: To which version of your updates am I supposed to answer?

      Cheers Rolf

        No you didn't ... I did !x3

        Seriously?

        My point is that my question still stands as you replied with something unrelated.

        What's your point? (x2)

        To which version of your updates am I supposed to answer?

        Since each was a superset of the previous, does it matter? Reply to whichever part you want. =