caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: Zhu Ping <zhuping@comp.nus.edu.sg>
Cc: Gerd Stolpmann <info@gerd-stolpmann.de>,
	matthieu.dubuget@laposte.net, caml-list@yquem.inria.fr,
	Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [Caml-list] Using Frontc
Date: Thu, 24 Nov 2005 21:25:20 +1100	[thread overview]
Message-ID: <1132827920.8955.9.camel@rosella> (raw)
In-Reply-To: <438559DC.5020906@comp.nus.edu.sg>

On Thu, 2005-11-24 at 14:12 +0800, Zhu Ping wrote:

> 
> /home/dreamer/code/sample1.c[1] Invalid symbol: int main(int base, int
> expon)
> /home/dreamer/code/sample1.c[2] Invalid symbol: {

Spurious CR by any chance? Only one error per line here.
Weird though, it should handle it.

Anyhow the reason it works is simple enough: the parser
is called 'initial' and here is the rule in question:
|    _        {E.parse_error
      "Invalid symbol"
     (Lexing.lexeme_start lexbuf)
    (Lexing.lexeme_end lexbuf);
   initial lexbuf}


so you can see it emits a diagnostic .. and then continues
by recursively calling itself again .. ignoring the error.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


  reply	other threads:[~2005-11-24 10:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-20  8:44 Zhu Ping
2005-11-20 12:37 ` Matthieu Dubuget
2005-11-21  8:41   ` Zhu Ping
2005-11-21  9:54     ` Gerd Stolpmann
2005-11-24  6:12       ` Zhu Ping
2005-11-24 10:25         ` skaller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-18  9:22 Zhu Ping
2005-11-18  9:52 ` [Caml-list] " Anil Madhavapeddy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1132827920.8955.9.camel@rosella \
    --to=skaller@users.sourceforge.net \
    --cc=anil@recoil.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=info@gerd-stolpmann.de \
    --cc=matthieu.dubuget@laposte.net \
    --cc=zhuping@comp.nus.edu.sg \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).