[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Erik de Castro Lopo <ocaml-erikd@m...> |
| Subject: | Re: [Caml-list] yacc style |
On 28 Jan 2005 12:14:39 +1100 skaller <skaller@users.sourceforge.net> wrote: > On Fri, 2005-01-28 at 08:39, Erik de Castro Lopo wrote: > > > > Yes, normally the parser generates a parse tree which is then > > passed to the semantic analyser for semantic checking. > > Unfortunately this is useless in the common case > of needing to parse C. I'm happy to take your word for it John, but I'd like to know why. > It would surely be nice > to be able to pass an argument to ocamlyacc, > as can now be done for ocamllex. Could you give a example? > Strangely in this case the ideal place to add > on the typedef table would be the lexbuf, Ok, so this enables you to know at lex time if an identifier is a user type avoiding ugly parser hacks to work around the fact that identifier X is actually a user defined type. Am I on the right track here? Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ "life is too long to know C++ well" -- Erik Naggum