From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2d20631208b0773f X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Ada syntax checker: Help! Date: 2000/05/12 Message-ID: <8fh3m6$vao$1@nnrp1.deja.com>#1/1 X-Deja-AN: 622557778 References: <8fc93f$jgg$1@nnrp1.deja.com> <8fgfng$9ru$1@nnrp1.deja.com> <8fh1c1$sik$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri May 12 14:15:51 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-05-12T00:00:00+00:00 List-Id: In article <8fh1c1$sik$1@nnrp1.deja.com>, Ted Dennison wrote: > So by "syntax checker" here, do you just mean verifying that > the file can be properly tokenized? Of course not! That's lexical analysis. The notion of syntax is very well defined in the Ada 83 RM Annex E, and what DASC does, no more and no less, is to determine if the submitted text can be generated by the grammar of Annex E. Now it is true in fact that nearly all the time (in fact about 90% is taken up on I/O and lexical analysis, so the parsing does not add much). This is as expected. The exact test file I used in presenting the results was a million line file made up of multiple copies of the following procedure: procedure a is begin x := y + z; -- that was an addition end; with no blank lines The time for a full parse of this file (wall clock time including input/output) is: 3.05 seconds (file is not in file cache) 1.47 seconds (file is in file cache) The measurements were done on a 300MHz thinkpad 770X (that's an older model with a slow front side bus and a fairly slow disk). But I was using OS/2, with HPFS386, which is considerably faster file system than Linux or any of the Microsoft stuff. > I dobut it is even a twentieth as fast as your checker > hand-coded in x86 assebly though. If you can come within a factor of 20 of this with your tokenizer I would say that's excellent performance :-) I am trying to dig up the sources of DASC, and if I can find them I will make them available under the GPL for people to play with! I know they are on ancient backup media, but the question is whether I have a convenient version that I can find easily! Robert Dewar Sent via Deja.com http://www.deja.com/ Before you buy.