You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucy.apache.org by "Marvin Humphrey (JIRA)" <ji...@apache.org> on 2012/07/16 04:36:34 UTC
[lucy-issues] [jira] [Created] (LUCY-241) CFC lexer should treat reserved words
as special cases of identifier
Marvin Humphrey created LUCY-241:
------------------------------------
Summary: 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
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
[lucy-issues] [jira] [Resolved] (LUCY-241) CFC lexer should treat reserved words
as special cases of identifier
Posted by "Logan Bell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCY-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Logan Bell resolved LUCY-241.
-----------------------------
Resolution: Fixed
Fix Version/s: 0.3.3
> 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
> Assignee: Logan Bell
> Priority: Minor
> Fix For: 0.3.3
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
[lucy-issues] [jira] [Updated] (LUCY-241) CFC lexer should treat reserved words
as special cases of identifier
Posted by "Marvin Humphrey (JIRA)" <ji...@apache.org>.
[ 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
[lucy-issues] [jira] [Assigned] (LUCY-241) CFC lexer should treat reserved words
as special cases of identifier
Posted by "Logan Bell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCY-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Logan Bell reassigned LUCY-241:
-------------------------------
Assignee: Logan Bell
> 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
> Assignee: Logan Bell
> 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