Question about GOTO syntax checking

"Magnus Jansson" <magnus.jansson@mbox319.swipnet.se>
14 Jul 1999 02:08:38 -0400

          From comp.compilers

Related articles
Question about GOTO syntax checking magnus.jansson@mbox319.swipnet.se (Magnus Jansson) (1999-07-14)
Re: Question about GOTO syntax checking rkrayhawk@aol.com (1999-07-14)
Re: Question about GOTO syntax checking thiadmer@compuphase.com (1999-07-19)
Re: Question about GOTO syntax checking cfc@world.std.com (Chris F Clark) (1999-07-19)
Re: Question about GOTO syntax checking jonathan_barker@my-deja.com (1999-07-20)
| List of all articles for this month |
From: "Magnus Jansson" <magnus.jansson@mbox319.swipnet.se>
Newsgroups: comp.compilers
Date: 14 Jul 1999 02:08:38 -0400
Organization: LemurData Hb
Keywords: question

Hi I'm a real beginner in this, excuse me if my question is
stupid. But: How do I check that a goto statement doesn't end up inside
an if statement or a loop? For example:




program....


begin


....


goto l1;


if a>0 then begin
....


L1:


....
end;


....


This is incorrect, you shouldn't be able to jump inside an if-stmt
like that. But, how does one check it????


Thanks for any pointers.


Magnus Jansson


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.