MSVS C++ compiler:Visitor/iterator patterns and tree parsing

  • Context: C/C++ 
  • Thread starter Thread starter inotyce
  • Start date Start date
  • Tags Tags
    C++ Patterns Tree
Click For Summary
SUMMARY

The discussion centers on the use of visitor and iterator design patterns in the context of syntax and grammar tree processing within the MSVS C++ compiler. Participants highlight the challenges of verifying the implementation of these patterns due to the proprietary nature of the compiler. The conversation suggests exploring alternative compilers for research purposes, as the closed-source status of MSVS C++ limits access to its internal architecture.

PREREQUISITES
  • Understanding of design patterns, specifically visitor and iterator patterns
  • Familiarity with syntax and grammar trees in compiler design
  • Knowledge of C++ programming language and its features
  • Awareness of compiler architecture and its components
NEXT STEPS
  • Research the implementation of visitor and iterator patterns in open-source compilers like GCC or Clang
  • Study syntax tree construction and manipulation techniques in compiler design
  • Explore the differences between open-source and closed-source compiler architectures
  • Learn about the role of design patterns in software engineering, particularly in compiler development
USEFUL FOR

Software engineers, compiler developers, and computer science students interested in compiler design and the application of design patterns in programming.

inotyce
Messages
43
Reaction score
1
While creating the compiler, did they use these patterns to process the syntax/grammar trees ? I use MSVS C++ as a specific example, it can be any compiler in general.
Thank you a lot.
 
Last edited:
Technology news on Phys.org
Given that this compiler is not open source, even if somebody told you the patters were or were not used, you would have no way of verifying that and studying whatever details might be of interest.

I suggest you pick some other target for your research.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
4K
Replies
6
Views
3K
Replies
65
Views
5K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K