Bertalan Fodor wrote:
Hello,

I'm very close to finish a Java-based parser for lilypond. I will use

Wow. Do you also parse Scheme?

this in jEdit-LilyPondTool for instant error checking and advanced code completion and refactoring. However, I found that it not trivial to identify certain token types. So I'd like to ask here to show me examples or explain what these (or some of these) are, or where they come from.
I know two kind: MUSIC_FUNCTION* and MARKUP*etc.

STRING_IDENTIFIER

foo = "string"

SCM_IDENTIFIER (I know \major and \minor is one example, but don't see where they come from)

any Scheme value not covered by other identifier types. See

  Lily_lexer::try_special_identifiers (SCM *destination, SCM sid)

in parser.yy

SCORE_IDENTIFIER

foo = \score  { ... }

CONTEXT_DEF_IDENTIFIER

foo = \context  { .. }

OUTPUT_DEF_IDENTIFIER

foo = \layout { .. }


DURATION_IDENTIFIER

foo = #(ly:make-duration ... )


--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to