[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

flex libraries



Martin,

	First of all libl and libfl are (from memory) interchangeable.
	They both contain 2 objects:
		main()
		yywrap()
	nothing else.

	main() is just a trivial main() function which calls yylex()
	and yywrap is a normally trivial function whose default in
	lib(f)l is just

	int yywrap()  { return 1; }		// 1 == EOF, 0 == more data

	So you can use this library with yacc for the yywrap function and
	the main() gets overwritten/ignored as I recall.

	In short, write your own replacement functions.
	
	regards
		kim

Kim Lester,
Senior Engineer,
Datafusion and Visualisation Systems