Menu

#2 Multiple token definition in lexer

Must_have!
open
Unspecified (1)
5
2013-01-30
2009-07-29
beachcoder
No

This is a request from a current support request. JS/CC must be enabled to support multiple tokens for the same input sequence.
Which token is returned must be decided by the semantic code.

Current request is implementing a Phyton-like language, where blocks are defined using tabs.

Example:
'\t'+ INDENT, DEDENT [* if( test for mode ) %token = INDENT; else return %token = DEDENT; *]

The feature of returning a different token must be implemented to support ALL available token!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.