Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » NTL and C4251
Re: NTL and C4251 [message #2797 is a reply to message #2796] Tue, 25 April 2006 16:06 Go to previous messageGo to previous message
jmansion is currently offline  jmansion
Messages: 15
Registered: April 2006
Location: London
Promising Member
>Notice that grammar for C++ is already
>definied and approved, so there is no
>need for expeiments with grammar!

I disagree. The grammar as defined cannot be implemented directly - it requires infinite lookahead to determine which symols refer to types and which to variable declarations. There may be other issues too.

You need to transfrom it to one that can build a basic parse tree and then do a lot of the work subsequently, even in a plain class declaration. Personally I would value an ability to iterate cheaply at that stage, where I'm working with something that has a reasonable declarative correspondence to the ANSI 'grammar', rather than C++ code, but clearly YMMV.

James
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TimeDate.cpp [BUG][FIXED]
Next Topic: Array container does only serialize base classes
Goto Forum:
  


Current Time: Thu May 09 22:09:03 CEST 2024

Total time taken to generate the page: 0.01914 seconds