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.