Parser,Generator for Java具有以下要求 [英] Parser, Generator for Java with the following requirements

查看:376
本文介绍了Parser,Generator for Java具有以下要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个Java解析器生成器,它执行以下操作:我的语言项目非常简单,只包含一小组令牌。

I am looking for a parser generator for Java that does the following: My language project is pretty simple and only contains a small set of tokens.

纯粹的输出可读的Java代码,以便我可以修改它(这就是为什么我不会使用ANTLR)
成熟的库,它将运行并至少使用Java 1.4

Output in pure READABLE Java code so that I can modify it (this why I wouldn't use ANTLR) Mature library, that will run and work with at least Java 1.4

我看了下面的内容他们可能会工作:JavaCC,jlex,Ragel?

I have looked at the following and they might work: JavaCC, jlex, Ragel?

推荐答案

你应该使用老鼠 ...这样,你就不必将词法分析器和解析器分开了那么如果你想扩展你的项目将是微不足道的。它在java中,然后你可以用Java处理你的AST ......

You should use Rats... This way, you don't have to separate lexer and parser and then if you want to extend your project that will be trivial. It's in java and then you can process your AST in Java...

这篇关于Parser,Generator for Java具有以下要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆