⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 用java实现的通用解释器
💻
字号:
This is a Java port of the GNU getopt functions based on the versions contained in glibc 2.0.6.  I have attempted to keep the functionality and programmer's interface as faithful to the original as possible.However, due to differences between Java and C, some minor changeshas to me made.  (Given the obtuse interface in the clib version, perhaps some major changes should have been made).  This should not affect the way options appear to be parsed to the end user of program that uses this Java getopt.  The use of these classes are completely documented in the javadoc comments, so I will not repeat that info here. Note that since these objects are part of a package called "gnu.getopt", they need to be in a subdirectory called gnu/getopt somewhere in your CLASSPATH.  This includes the "MessagesBundle" files.I am not aware of any bugs.  If you find one though, please send email to me at arenn@urbanophile.com.  The more detailed a bug report the better. Bug fixes are also welcome at the same address.  Please referencerelease number "1.0.8".  If you use this code, it would be helpfulif you let me know so that I can let you know if anything changes orif any major bugs have been found/fixed.I have included a Makefile for compiling the code. If you do not haveaccess to make, then you can simply do a "javac *.java" at the OS command line (or follow your vendor's instructions for compiling aJava class).  To build the documentation, do a "make docs" or "javadoc -public *.java".  Note that the images needed by the htmlgenerated by javadoc are not included.  You will need to get thosefrom some other Java documentation package.Note that the Makefile is not compliant with the GNU makefilestandards as I anticipate that at some point a master makefile willbe created for various GNU Java packages.  And it is serious overkillto create a megabloat makefile (kinda like this megabloat README) for such a simple package.There is sample code showing how to use getopt available in theGetoptDemo.java file.NEW: A support file for the "ant" build process was contributed.  Here aresome brief things you can do with it.  Note that I have not ever used thisso it is doubly AS IS.Get ant from jakarta project (see jakarta.apache.org/ant), and run it withone of these target (all is default target):ant prepare: create the needed directoriesant classes: compile the java classesant jar: create the jar archiveant javadoc: create the javadocant all: create jar and javadocant clean: clean everythingHappy hacking,Aaron.arenn@urbanophile.comhttp://www.urbanophile.com/arenn/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -