singularityt3 / pseudoengine2 Goto Github PK
View Code? Open in Web Editor NEWAn interpreter for IGCSE/A level pseudocode
License: GNU General Public License v3.0
An interpreter for IGCSE/A level pseudocode
License: GNU General Public License v3.0
Hi,
I tried to compile as indicated on both macOS Mojave (10.14) and Debian Bullseye (11).
I got error.
macOS
$ cmake -B build
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/ccache - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/ccache - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user1/PseudoEngine2/build
$ cmake --build build --config Release
[ 1%] Building CXX object CMakeFiles/PseudoEngine2.dir/cmake_pch.hxx.pch
In file included from <built-in>:1:
In file included from /Users/user1/PseudoEngine2/build/CMakeFiles/PseudoEngine2.dir/cmake_pch.hxx:5:
/Users/user1/PseudoEngine2/src/pch.h:11:10: fatal error: 'concepts' file not found
#include <concepts>
^~~~~~~~~~
1 error generated.
gmake[2]: *** [CMakeFiles/PseudoEngine2.dir/build.make:77: CMakeFiles/PseudoEngine2.dir/cmake_pch.hxx.pch] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/PseudoEngine2.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Debian:
$ cmake -B build -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/laurent/PseudoEngine2/build
laurent@debian-graphique-demo:~/PseudoEngine2$ cmake --build build --config Release
Scanning dependencies of target PseudoEngine2
[ 1%] Building CXX object CMakeFiles/PseudoEngine2.dir/cmake_pch.hxx.gch
[ 3%] Building CXX object CMakeFiles/PseudoEngine2.dir/src/lexer/symbolLexer.cpp.o
In file included from /home/laurent/PseudoEngine2/src/psc/types/types.h:7,
from /home/laurent/PseudoEngine2/src/psc/variable.h:5,
from /home/laurent/PseudoEngine2/src/psc/scope/context.h:6,
from /home/laurent/PseudoEngine2/src/psc/error.h:5,
from /home/laurent/PseudoEngine2/src/lexer/lexer.h:6,
from /home/laurent/PseudoEngine2/src/lexer/symbolLexer.cpp:4:
/home/laurent/PseudoEngine2/src/psc/types/datatypes.h:10:15: error: expected nested-name-specifier before ‘enum’
10 | using enum Type;
| ^~~~
In file included from /home/laurent/PseudoEngine2/src/psc/variable.h:5,
from /home/laurent/PseudoEngine2/src/psc/scope/context.h:6,
from /home/laurent/PseudoEngine2/src/psc/error.h:5,
from /home/laurent/PseudoEngine2/src/lexer/lexer.h:6,
from /home/laurent/PseudoEngine2/src/lexer/symbolLexer.cpp:4:
/home/laurent/PseudoEngine2/src/psc/types/types.h:217:22: error: ‘year_month_day’ in namespace ‘std::chrono’ does not name a type
217 | std::chrono::year_month_day date;
| ^~~~~~~~~~~~~~
/home/laurent/PseudoEngine2/src/psc/types/types.h:221:41: error: expected ‘)’ before ‘date’
221 | Date(std::chrono::year_month_day date);
| ~ ^~~~~
| )
In file included from /home/laurent/PseudoEngine2/src/psc/scope/context.h:7,
from /home/laurent/PseudoEngine2/src/psc/error.h:5,
from /home/laurent/PseudoEngine2/src/lexer/lexer.h:6,
from /home/laurent/PseudoEngine2/src/lexer/symbolLexer.cpp:4:
/home/laurent/PseudoEngine2/src/psc/array.h:48:2: warning: extra ‘;’ [-Wpedantic]
48 | };
| ^
In file included from /home/laurent/PseudoEngine2/src/psc/scope/context.h:8,
from /home/laurent/PseudoEngine2/src/psc/error.h:5,
from /home/laurent/PseudoEngine2/src/lexer/lexer.h:6,
from /home/laurent/PseudoEngine2/src/lexer/symbolLexer.cpp:4:
/home/laurent/PseudoEngine2/src/psc/procedure.h:54:2: warning: extra ‘;’ [-Wpedantic]
54 | };
| ^
gmake[2]: *** [CMakeFiles/PseudoEngine2.dir/build.make:98 : CMakeFiles/PseudoEngine2.dir/src/lexer/symbolLexer.cpp.o] Erreur 1
gmake[1]: *** [CMakeFiles/Makefile2:95 : CMakeFiles/PseudoEngine2.dir/all] Erreur 2
gmake: *** [Makefile:160 : all] Erreur 2
What are the dependecies/libraries to be installed before compiling ?
Tried the following Pseudocode for testing purposes...
FUNCTION CheckFile(ThisFile : STRING) RETURNS BOOLEAN
DECLARE Valid : BOOLEAN
DECLARE ThisLine : STRING
DECLARE Count : INTEGER
Count <- 0
Valid <- FALSE
OPEN ThisFile FOR READ
RETURN Valid
ENDFUNCTION
CALL CheckFile("test.txt")
Gives syntaxerror line 9. I suppose its because theres no read functionality yet...
there is no float, and END doesn't work
Hello,
The binaries you attached didn't work for my Windows computer, so I had to try it on a REPL.it.
Please try to fix the binaries, also add compile instructions for anyone to compile the program:
add set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
to CMakeLists.txt
then run
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ PseudoEngine2
make
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.