diff --git a/.gitignore b/.gitignore index 32da383..2f94b67 100644 --- a/.gitignore +++ b/.gitignore @@ -85,4 +85,4 @@ Backup*/ UpgradeLog*.XML UpgradeLog*.htm - +a.out diff --git a/BadassPascal/BadassPascal.cpp b/AwesomePascal.cpp similarity index 99% rename from BadassPascal/BadassPascal.cpp rename to AwesomePascal.cpp index e3a3ef0..07f1bb3 100755 --- a/BadassPascal/BadassPascal.cpp +++ b/AwesomePascal.cpp @@ -1119,7 +1119,7 @@ void PARSE() { while (I < instructions.size()) { - cout << "\n inst "<< I << '\n'; + // cout << "\n inst "<< I << '\n'; switch (instructions[I] ->nop) { case INT: diff --git a/BadassPascal/BadassPascal.vcxproj b/AwesomePascal.vcxproj similarity index 98% rename from BadassPascal/BadassPascal.vcxproj rename to AwesomePascal.vcxproj index 5daff99..f512a41 100755 --- a/BadassPascal/BadassPascal.vcxproj +++ b/AwesomePascal.vcxproj @@ -23,7 +23,7 @@ Win32Proj ConsoleApplication18 10.0.17763.0 - BadassPascal + AwesomePascal @@ -157,9 +157,9 @@ - + - \ No newline at end of file + diff --git a/BadassPascal.sln b/BadassPascal.sln deleted file mode 100644 index 1e57f3b..0000000 --- a/BadassPascal.sln +++ /dev/null @@ -1,28 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.23107.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BadassPascal", "BadassPascal\BadassPascal.vcxproj", "{62CCFC20-46DF-4039-97A5-AA068BD6A016}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {62CCFC20-46DF-4039-97A5-AA068BD6A016}.Debug|x64.ActiveCfg = Debug|x64 - {62CCFC20-46DF-4039-97A5-AA068BD6A016}.Debug|x64.Build.0 = Debug|x64 - {62CCFC20-46DF-4039-97A5-AA068BD6A016}.Debug|x86.ActiveCfg = Debug|Win32 - {62CCFC20-46DF-4039-97A5-AA068BD6A016}.Debug|x86.Build.0 = Debug|Win32 - {62CCFC20-46DF-4039-97A5-AA068BD6A016}.Release|x64.ActiveCfg = Release|x64 - {62CCFC20-46DF-4039-97A5-AA068BD6A016}.Release|x64.Build.0 = Release|x64 - {62CCFC20-46DF-4039-97A5-AA068BD6A016}.Release|x86.ActiveCfg = Release|Win32 - {62CCFC20-46DF-4039-97A5-AA068BD6A016}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/BadassPascal/InsertionSort.pas b/InsertionSort.pas similarity index 97% rename from BadassPascal/InsertionSort.pas rename to InsertionSort.pas index d2d6269..d433d04 100644 --- a/BadassPascal/InsertionSort.pas +++ b/InsertionSort.pas @@ -48,8 +48,6 @@ j:=f; i:=t; call q; -write(a); -write(b); begi:=begi+1; end; write(b); diff --git a/BadassPascal/NumericExpr.pas b/NumericExpr.pas similarity index 55% rename from BadassPascal/NumericExpr.pas rename to NumericExpr.pas index ccb1bb5..6badb4b 100644 --- a/BadassPascal/NumericExpr.pas +++ b/NumericExpr.pas @@ -1,27 +1,25 @@ const a=10; - var b,c; + var b,c,e; procedure p; var d; begin d:=20; -write(d); c:=d/a; -write(c); c:=c+b; -write(c); if ae.g. ->`$ g++ -O3 BadassPascal.cpp -o BP` +- MSVC project: AwesomePascal.vcxproj +- GNU C++/Clang: compile AwesomePascal.cpp directly + +## Examples +- InsertionSort.pas: A simple program that takes 5 integers and sorts them in descending order. +- NumericExpr.pas: A simple program that contains numerical expressions and control flow. +- +## Usage + +>`$ g++ -O3 -DNDEBUG AwesomePascal.cpp -o BP` >`$ ./BP InsersionSort.pas`