Вопрос

I know about CUP or javaCC or some other parser generators,

but I want to add the ability to understand a simple language to my project, without the need to configure a complex tool as CUP.

The language is something a little too complicated to be parsed with regular expressions, since I want to use operators:

|| && ( ) [ ]
Это было полезно?

Решение 2

The functionality is provided for Python by a library called PyParse. Probably the library can be integrated using Jython.

Другие советы

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top