lilypond-devel
[Top][All Lists]

## Re: Parser questions

 From: Han-Wen Nienhuys Subject: Re: Parser questions Date: Wed, 28 Dec 2005 17:57:08 +0100 User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

```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 - address@hidden - http://www.xs4all.nl/~hanwen

```