[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parse scheme ast
From: |
David Kastrup |
Subject: |
Re: Parse scheme ast |
Date: |
Thu, 20 Jul 2017 16:57:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Hlöðver Sigurðsson <address@hidden> writes:
> Hi lilyponders,
>
> I'm looking to find a way to transpile code to lilypond, I know how to
> generate an ast like this
>
> ((context . 0) (class . CreateContext) (unique . 1) (ops) (type . Score)
> (id . "\\new"))
> ((context . 1) (class . CreateContext) (unique . 2) (ops) (type .
> StaffGroup) (id . "\\new"))
> ((context . 2) (class . CreateContext) (unique . 3) (ops) (type . Staff)
> (id . "\\new"))
> ((context . 3) (class . CreateContext) (unique . 4) (ops) (type . Voice)
> (id . ""))
>
> but I have no idea where in GUILE/lilypond this would get parsed to
> output. Some hints where to get started?
LilyPond is an interpreter, not a compiler, so it doesn't work with
parse trees. See lily/parser.yy for its parser (and associated actions)
and lily/lexer.ll for its lexer.
--
David Kastrup
- Parse scheme ast, Hlöðver Sigurðsson, 2017/07/20
- Re: Parse scheme ast,
David Kastrup <=
Re: Parse scheme ast, caagr98, 2017/07/20