我部署了一个lex/yacc解决方案,尝试使用这个grammar。当我想使用以下命令编译.lex文件时出现问题: lex -t "file.lex“
我收到此错误:错误:解析树太大尝试使用%e num
任何帮助都请thnks。
发布于 2011-09-27 22:59:15
我有一个类似的lex (来自lex -V的相同输出),这个语法对我来说没什么问题(Solaris10/SPARC),所以我想您可能需要一个补丁。下面的pkginfo输出。
$ pkginfo -l SUNWbtool
PKGINST: SUNWbtool
NAME: CCS tools bundled with SunOS
CATEGORY: system
ARCH: sparc
VERSION: 11.10.0,REV=2005.01.21.15.53
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: software development utilities, including ar, dis, dump, elfdump, lex, lorder, mcs, nm, prof, ranlib, rpcgen, size, strip, tsort, and yacc
PSTAMP: on10ptchfeat20090911051613
INSTDATE: Mar 15 2011 15:46
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 48 installed pathnames
8 shared pathnames
2 linked files
8 directories
24 executables
1874 blocks used (approx)
$https://stackoverflow.com/questions/7567931
复制相似问题