对于lex / flex / yacc / bison文件是否有良好的Emacs模式或方法? [英] Is there a good Emacs mode or method for lex/flex/yacc/bison files?

查看:258
本文介绍了对于lex / flex / yacc / bison文件是否有良好的Emacs模式或方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Emacs编辑lex或yacc文件是一个麻烦:如果我使用C模式缩进错误,如果我不使用C模式,我不能使用缩进。有没有人有窍门,方法或编辑模式来解决它?

Editing lex or yacc files with Emacs is a nuisance: if I use C mode the indenting goes wrong, and if I don't use C mode I can't use indenting. Does anyone have a trick, a method, or an editing mode to get around it?

推荐答案

这不完全是你想要的对于Emacs来说,有一个很好的Bison模式。

It's not entirely what you want but there is a very excelent Bison mode for Emacs.

http://www.emacswiki.org/emacs/BisonMode

这是一个更好的链接:

http:// ftp。 lip6.fr/pub/emacs/elisp-archive/incoming/bison-mode.el.gz

由于Yacc和野牛是如此密切相关我don不觉得它缺乏太多。虽然我做了大部分与Antlr的工作。

Since Yacc and bison are so closely related I don't find it lacking too much. Though I do most of my work with Antlr anymore.

这篇关于对于lex / flex / yacc / bison文件是否有良好的Emacs模式或方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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