Iwao KIMURA on Sat, 12 Jan 2002 00:49:56 +0900 (JST)


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

flisseq() and filtre()


Hi all,

I am now trying to write a C program, using pari library, evaluating
some gp-expressions written on a file. These gp-expressions contain some
comments, spaces, line breaks and line-continuation `\', like

v=[[x^5-x^4-4*x^3+3*x^2+3*x-1,[5,0],[5,1,1],[14641,1],[1,x,x^2,x^3,x^4],[1,[],[],[]],1.635694125589697174263040903,[2,[-1,0,0,0,0]~],[[1,0,-3,0,1]~,[-1,-1,1,0,0]~,[0,1,0,0,0]~,[0,-2,0,1,0]~]],\
[x^5-5*x^3-x^2+3*x+1,[5,0],[120,-1,1],[24217,1],[1,x,x^2,x^3,x^4],[1,[],[],[]],2.399421131323994137564412027,[2,[-1,0,0,0,0]~],[[-3,1,5,0,-1]~,[-3,-3,9,1,-2]~,[-2,1,5,0,-1]~,[1,4,0,-1,0]~]]];

My program reads whole of the file, constructs single string by
appending all of lines, and evaluates the string by passing it to
flisseq().

But the program stops with message `unexpected character...' and
displays line-continuation `\' as unexpected ones.

I think flisseq() (more precisely, filtre()) should filter out
`\'. Or, is there any better way to do what I want to do?

Thanks.

	;#	Iwao KIMURA			;#
	;#	Faculty. Math, Dept. of Sciece	;#
	;#	Toyama University		;#