test files for newlisp source parser?

Notices and updates
Locked
cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

test files for newlisp source parser?

Post by cormullion »

I'm working on a source code parser, and I'm wondering whether there's such a thing as an official - or unofficial - test file that contains every possible syntax, such that you could run it to see whether everything has been parsed properly? For example, numbers in various formats, strings in various guises, and so on...

Also, what happens when newLISP sees [CMD] [/CMD] in a source file? I know what happens when you're working at a terminal, but what about non-interactively?

xytroxon
Posts: 296
Joined: Tue Nov 06, 2007 3:59 pm
Contact:

Re: test files for newlisp source parser?

Post by xytroxon »

cormullion wrote:I'm working on a source code parser, and I'm wondering whether there's such a thing as an official - or unofficial - test file that contains every possible syntax, such that you could run it to see whether everything has been parsed properly? For example, numbers in various formats, strings in various guises, and so on...
Use the source Luke er. cormullion ;)

In the source code distribution, Lutz has a series of "qa" files.
http://newlisp.nfshost.com/downloads/de ... -9.9.5.tgz

(Note; Most of these files have NO .lsp extension)

The two main files are:
qa-dot -> run tests for countries that use decimal point numbers
qa-comma -> run tests for countries that use commas in numbers

And there are aeveral other files for machine specific, or more in-depth tests.

qa-cilk
qa-dictionary
qa-lfs
qa-local-domain
qa-net
qa-ref
qa-setsig
qa-utf16path.lsp
qa-utf8
qa-xml

-- xytroxon
"Many computers can print only capital letters, so we shall not use lowercase letters."
-- Let's Talk Lisp (c) 1976

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

that's a good idea - thanks. I've never looked at the source...

Locked