Re: Pygments YAML Lexer (from Spec Update)

"Oren Ben-Kiki" <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
This looks very interesting, and yes potentially it would be possible to
plug the productions into it. The main lack I see in the framework there is
that it doesn't support passing parameters to a 'state' or 'production', at
least not "out of the box". However there seems to be multiple ways this
could be added into the system, ranging from a global stack to using
closures. I haven't really coded in Python so I have no idea what would be
the best approach. It certainly should be doable...

I have been caught up in a work project again, but hopefully next week I'll
be able to upload the existing (Haskell) code which you could use as an
inspiration.

Have fun,

    Oren Ben-Kiki

On 4/14/07, Jeff Kowalczyk <jtk-/[email protected]> wrote:
>
> Oren Ben-Kiki wrote:
> > (imminent) updated 1.1 YAML spec containing the updated productions.
>
> As the executable spec update gets finalized, would it be possible to emit
> productions in a form that would make a YAML lexer for Pygments easy,
> perhaps trivial to implement?
>
> http://pygments.org/docs/lexerdevelopment/
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.