https://github.com/strongerprogrammer7/methodsdevelopmenttranslator
The repository - translator from C to C#, on the language's C++
https://github.com/strongerprogrammer7/methodsdevelopmenttranslator
c cli cpp csharp windows-forms
Last synced: 7 months ago
JSON representation
The repository - translator from C to C#, on the language's C++
- Host: GitHub
- URL: https://github.com/strongerprogrammer7/methodsdevelopmenttranslator
- Owner: StrongerProgrammer7
- Created: 2023-02-03T17:46:22.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T21:03:39.000Z (over 2 years ago)
- Last Synced: 2025-07-30T17:26:37.865Z (8 months ago)
- Topics: c, cli, cpp, csharp, windows-forms
- Language: C++
- Homepage:
- Size: 166 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
** This work is being done as part of the Course Method development translator **
# MethodsDevelopmentTranslator
The repository has translator from C to C#, on the language C++
Base file: (russian language: Vishnikov Y.M. BalabaevaI.Y. PDF):
[](https://github.com/StrongerProgrammer7/MethodsDevelopmentTranslator/files/10741055/_.pdf)
6 Classes
- Translator (parent)
- LexicalAnalisator (inherit up, parent)
- ReversePolishNotation (inherit up, parent)
- SyntaxAnalisator (inherit up, parent)
- Translate_csharp (inherit up, parent)
- TranslatroFromCToCSharp(inherit up, parent)
Users should use last class. Last class using next methods:
- lexicalAnalyze
- reversePolishNotAnalyze
- syntaxAnalyze
- translateToCSharp
Using:
TranslatorFromCToCSharp translator;
translator.lexicalAnalyze(fileText_C);
translator.reversePolishNotAnalyze();
In condition(if) translator.syntaxAnalyze() == true
translator.translateToCSharp();
All method save file to folder "translator_file"
TODO
Multiple inheritance is present.
The reason for this table decision.
Solution
1) What is, and inherit tables (identifiers, constants, etc.)
2) All classes will be inherited from the same class, as they should be "Translator",
but then you have to pass in the table constructor, and make them open or apply getters
3) Maybe using pattern "Template"

Development tools and Programming Language
Microsoft Visual Studio Profession 2019
Language C++, C++/CLI (Windows forms)