[
https://issues.apache.org/jira/browse/LUCY-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marvin Humphrey updated LUCY-241:
---------------------------------
Attachment: start.patch
Here's an incomplete patch. It needs to be finished by adding other words to
the reserved_word_map. (Right now only "const" is in the map.)
Anyone else who chooses to hack on this take note:
* Every time you modify clownfish/src/CFCLexHeader.l you must run
`./Build lexers; ./Build` instead of just `./Build`.
* When committing, you will also commit the generated file CFCLexHeader.c.
> CFC lexer should treat reserved words as special cases of identifier
> --------------------------------------------------------------------
>
> Key: LUCY-241
> URL: https://issues.apache.org/jira/browse/LUCY-241
> Project: Lucy
> Issue Type: Improvement
> Components: Clownfish
> Reporter: Marvin Humphrey
> Priority: Minor
> Attachments: start.patch
>
>
> CFC's lexer has a distinct rule for each reserved words, which is unusual.
> The more common technique is to overload the rule for identifiers by checking
> if each word is in a list of reserved words.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira