Re: Now, to try again... by Simon Cozens- December 23, 2000 On Mon, Dec 18, 2000 at 10:12:35AM -0500, Andy Dougherty wrote:> The issues of &39;use Python&39; or &39;use Pythonish&39; are a quite different issue.> I don&39;t think anyone believes it ought to be easy to write the Pythonish> module. But it ought to be possible.Incidentally, it&39;s possible in Perl 5. Very possible; I&39;m just about tofinish off a module called B::Generate which allows you to create yourown op trees - it&39;s basically B but with getset methods instead of...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg209.html Re: Now, to try again... by Steve Fink- December 19, 2000 I&39;m wondering if we should explicitly break out the languages thatcomprise perl today. That&39;d be at least toplevel perl, regularexpressions, and pack. Maybe tr and the second half of s aresufficiently different too. If nothing else, it would highlight theproblems in switching languages midstream. Like:) can you always know that you&39;re definitely switching languages, ormight you have to back out of a regular expression parse when yourealize you&39;ve been reading a comment all along...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg208.html Re: Mail problems simoncozens.net: Re: Now, to try again... by Ask Bjoern Hansen- December 19, 2000 On Sun, 17 Dec 2000, Simon Cozens wrote:> This is the fourth time I&39;ve sent this mail to perl6-internals-api-parser,I&39;ve seen it on the list at least twice.> but it doesn&39;t seem to be arriving. None of my other mail is affected, and> perl5-porters is, for once, behaving itself; why this list in particular Send me the log snippets from your mailserver successfullydelivering the mail to one of the perl.org mx&39;es and I can lookafter it.If it was before the weekend, don&39;t...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg207.html Re: Now, to try again... by David Grove- December 19, 2000 Andy Dougherty <dougheralafayette.edu> wrote: > On Mon, 18 Dec 2000, David Grove wrote: > > > > > Andy Dougherty <dougheralafayette.edu> wrote: > > > I think you misunderstand. I think it should be very easy to use a > hypothetical Pythonish module. I don&39;t expect it will be very easy to > create it, and I don&39;t see it as worthwhile to expend adisproportionate > amount of effort in that direction. > > In another message, you write...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg206.html Re: Now, to try again... by Andy Dougherty- December 19, 2000 On Mon, 18 Dec 2000, David Grove wrote:> > Andy Dougherty <dougheralafayette.edu> wrote:> > > The issues of &39;use Python&39; or &39;use Pythonish&39; are a quite different> issue.> > I don&39;t think anyone believes it ought to be easy to write the> Pythonish> > module.> > I do.> That&39;s the problem. This is a nearly ubiquitously desired objective> (writing the modules or whatever they are), but I have the fear that> actually writing..http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg205.html Re: Now, to try again... by Nick Ing-Simmons- December 19, 2000 Sam Tregar <samtregar.com> writes:>>It comes down to what is meant by "little language". When I hear that>term I immediately think Scheme and TCL. They both have a small core and>extremely regular syntax. I can imagine writing a smallish parser that>spits out Perl bytecode for either. TCL is surprisingly hard to get right. The parse is trivialbut typical Tcl code uses the quoting mechanisms to creatively create variable names at the various interpolation...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg204.html A parser that can handle partial programs (was Re: Now, to try again...) by Nick Ing-Simmons- December 19, 2000 Bradley M . Kuhn <bkuhnebb.org> writes:>Nicholas Clark <nickccl4.org> wrote:>>> Something I though of:>> If you&39;re trying to write an interactive perl inputer - either a perl shell>> or just the command prompt on the debugger it would be useful if you>> could tell the parser that the chunk of source you&39;re giving it may be>> incomplete.>>I really like this idea, although I am unsure of how we might implement it.>I don&39;t recall...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg203.html Re: Now, to try again... by Nick Ing-Simmons- December 19, 2000 David Grove <petepetes-place.com> writes:>>Because what is the parserlexertokenizer parsing Perl Pythonic>Javanese It is entierly possible to use one parserlexer "engine" for multiple languages - for example a yaccbyaccbison LALR(1) parser is a simplestate machine - all the language stuff is in the "data" part.But switching lexer and parser&39;s look-ahead "token" at language boundaries is a tad tricky. But that is probably not what is being...http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg202.html Re: Now, to try again... by David Grove- December 18, 2000 Dan Sugalski <dansidhe.org> wrote: > At 12:29 PM 121800 +0000, David Grove wrote: > > >Sam Tregar <samtregar.com> wrote: > > > > > On Mon, 18 Dec 2000, David Grove wrote: > > > > > > >snip > > > > > > _Perl_ _within_ _a_ _Perl_ _context_ _and_ _for_ _Perl__purposes_, > > > > > > Feeling a little hostile to the rest of the programming worldYou&39;re > > > sounding almost nationalistic! .http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg201.html Re: Now, to try again... by Dan Sugalski- December 18, 2000 At 06:05 PM 121800 +0000, Nicholas Clark wrote:>On Mon, Dec 18, 2000 at 11:30:09AM +0000, David Grove wrote:> >> > Bart Lateur <bart.lateurskynet.be> wrote:>> > > But, the gist of this post is: we don&39;t want to loose the usefulness of> > > the syntax highlighter, as soon as there is one syntax error in the> > > script, because this will be the normal situation while editing source.> > > Parsers are generally very bad at parsing..http://www.nntp.perl.org/group/perl.perl6.internals.api.parser/2000/12/msg200.html |