[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grammar: meaning of terminals
From: |
Patrick McCarty |
Subject: |
Re: Grammar: meaning of terminals |
Date: |
Thu, 4 Mar 2010 10:36:03 -0800 |
2010/3/4 Harmath Dénes <address@hidden>:
> Greetings all,
>
> it's great to have a grammar of LilyPond in the NR! But there are terminal
> rules which are not strings (BOOK_IDENTIFIER, CHORD_MODIFIER etc.). Where can
> their definitions be learned?
If you do a `git grep' for them in the source tree, you will see that
many of these terminals come to life in the lexing stage.
For example, BOOK_IDENTIFIER is the return value of
Lily_lexer::try_special_identifiers() in lily/parser.yy, but only if
its second argument is a Book smob.
-Patrick