views:

17

answers:

1

Hi , I wanted to know if ANTLR supports emitting multiple tokens for a lexer rule, given the target language is JavaScript. I have found that it supports multiple tokens in other target languages, such as Java and CSharp, but could not find any documentation on this feature being supported in JavaScript.

If anyone could point me to any material on this , that would be great.

Thanks!!

+1  A: 

Given that the Javascript code generation target is listed as 'in sync' with ANTLR3 development I'd assume it would be supported.

The list of Unsupported Features also doesn't include this, which is another good sign. However the Javascript target is listed as beta, so you'll have to build ANTLR from source and try it to know for sure.

bemace