P2C项目正式开启!!!

版权声明:victor https://blog.csdn.net/qq_40155097/article/details/83618755

众所周知 C + + C++ P a s c a l Pascal O I e r OIer 常用的两种语言。但由于语法不同,很多P党都不愿意转 C + + C++ 。因此本人在此启动一个项目: P 2 C P2C 1项目。

  1. 项目名称:
    P 2 C P2C
  2. 项目编号:
    001 001
  3. 项目等级:
    t h e   m o s t   i m p o r t a n t the\ most\ important
  4. 项目内容:
    P a s c a l   T o   C p p Pascal\ To\ Cpp 翻译器制作。
  5. 项目性质:
    开源项目2(是不是很惊喜?)
    但是由于 p a s c a l pascal 的一些特性 C + + C++ 不支持本人也没办法,所以目前就把源代码和程序放上来,看看各位大神有没有什么办法()。
    目前代码已经写到了循环部分,包括变量,定量,for,while,repert,判断语句(case还没有完成),赋值语句。但子程序还没有写。

欢迎各位大神和我一起把这个项目完成。3

同时,该程序具有自动编译 p a s c a l pascal 代码,利用 A s t y l e Astyle 整理 C + + C++ 代码的功能.其中 B i n Bin 目录下的文件是编译 p a s c a l pascal 代码的库。

如何和我一起完成这个项目?

  • 在源代码的开头写下你的大名(我会依据贡献留名)
  • 用“/**/”注释掉你写的内容,方便我查看(或者你想怎样就怎样,只要让我知道就行了)
  • 在发给我之前先自测一下有没有bug。
  • 请将所有文件打成一个压缩包,用“ P 2 C P2C ”命名(所有文件如下)。
    在这里插入图片描述
  • 私信发分享链接给我
  • 你可以完成任何一个结构(比如case和子程序部分),但是要求能成功运行。
  • 请勿更改如下内容(包括使用方法(必读).txt)
	freopen("pascal.pas","r",stdin);
	freopen("c++.cpp","w",stdout);
	if(compile_check() == -1)
	{
		system("cls");
		cerr << "Pascal文件编译错误,我们终止了程序。\nPascal File compilation error, we terminated the program.\n";
		cerr << "请按任意键继续. . .\nPlease press any key to continue. . .\n"; 
		getch();
		return 1;
	}
	system("AStyle\\bin\\AStyle --style=allman -N -H -p -n -k3 --quiet c++.cpp");
	cerr << "翻译成功。\nTranslate successfully.\n";
	cerr << "请按任意键继续. . .\nPlease press any key to continue. . .\n";

项目在此处下载

一起加油吧!


  1. 该项目于2018.7.11开始 项目主导人:血丷锋 ↩︎

  2. 公测于2018.11.1开始,目前自测未发现问题 ↩︎

  3. 由于时间和精力问题,我希望我能和各位大神一起完成 ↩︎

猜你喜欢

转载自blog.csdn.net/qq_40155097/article/details/83618755