For those interested, I have wrapped te CS431 code into a Ruby .so. I am currently writing my scanner in ruby and using the code supplied in class. Hans was instrumental in getting me the patch file to port it from MSVC++ to g++. And props to the swig (www.swig.org) team that created such a nice tool.
For those familiar with the class this code works from within ruby. RUBY <<END require 'CS431' class Scanner < ConcreteScanner end args = ["Scanner"] args << ARGV args.flatten! main_init(args.length, args) scanner = Scanner.new scanner.token.sy = Eopsy scanner.run finish_up() END It outputs the right files and prompts like the pure C++ version does. Enjoy, especially if you are in cs431. :) -- Michael GnuPG Fingerprint: 4C56 7C23 8BD9 8B39 C4D4 B8F3 42FB 3634 31B5 E963
pgp00000.pgp
Description: PGP signature
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
