rbonichon / portugol Goto Github PK
View Code? Open in Web Editor NEWA new interpreter for Portugol
License: BSD 3-Clause "New" or "Revised" License
A new interpreter for Portugol
License: BSD 3-Clause "New" or "Revised" License
Hi Richard,
after your last changes I was able to recompile the portjs.js file but we started to miss the "Avisos e erros" logs. They are not showing up anymore. Can you help us?
By the way, I'm a full stack web developer at UCL college responsible for the ESO/edX project here in Brazil and we are interesting to support your portugol compiler project in order to speed up the development process. If you are interested please send me an email ([email protected]).
p.s.: Do you speak Portuguese?
Thank you.
Hi Richard,
I'm trying to make some changes and (re)compile your portjs.js file to use in a logic class at http://edx.org.br/ here in Brazil. But I'm not sure what this portugol -> /home/richard/dim0320/portuml
symbolic link means. Can you help me?
Thanks.
O site está fora do ar :/
O projeto ainda está em desenvolvimento??
Hi Richard,
I believe that I handled the dependencies at Makefile#L17
CAMLGRAPH = /home/ubuntu/.opam/4.02.1/lib/ocamlgraph
JSOFOCAML = /home/ubuntu/.opam/4.02.1/lib/js_of_ocaml
STUBLIBS = /home/ubuntu/.opam/4.02.1/lib/stublibs/
but I'm not sure which command I have to run to (re)generate a new portjs.js file. I tried to run make
and make all
but I just got these compile files below:
~/portugol$ make all
for d in "src"; do \
( cd $d ; make ) \
done
make[1]: Entering directory `/home/ubuntu/portugol/src'
ocamldep -I /home/ubuntu/.opam/4.02.1/lib/ocamlgraph -I /home/ubuntu/.opam/4.02.1/lib/stublibs/ utils.ml location.ml driver.ml io.ml types.ml values.ml env.ml builtins.ml ast_utils.ml ast.ml preprocess.ml analyze_variables.ml typer.ml interp.ml cfg.ml lexer.ml parser.ml parser.mli exe_main.ml repl_main.ml > .depend
ocamldep -I /home/ubuntu/.opam/4.02.1/lib/ocamlgraph -I /home/ubuntu/.opam/4.02.1/lib/stublibs/ utils.ml location.ml driver.ml io.ml types.ml values.ml env.ml builtins.ml ast_utils.ml ast.ml preprocess.ml analyze_variables.ml typer.ml interp.ml cfg.ml lexer.ml parser.ml parser.mli exe_main.ml repl_main.ml > .depend
Native Compiling utils.ml
Compiling location.mli
Native Compiling location.ml
Native Compiling driver.ml
Native Compiling io.ml
Native Compiling types.ml
Compiling values.mli
Native Compiling values.ml
Native Compiling env.ml
Compiling builtins.mli
Native Compiling builtins.ml
Native Compiling ast.ml
Native Compiling ast_utils.ml
Byte Compiling utils.ml
Byte Compiling types.ml
Byte Compiling ast.ml
Compiling parser.mli
Native Compiling parser.ml
Native Compiling lexer.ml
Native Compiling preprocess.ml
Native Compiling analyze_variables.ml
Native Compiling typer.ml
Compiling interp.mli
Native Compiling interp.ml
Native Compiling cfg.ml
Native Compiling exe_main.ml
ocamlfind ocamlopt -package "lwt,lwt.unix" -I /home/ubuntu/.opam/4.02.1/lib/ocamlgraph -I /home/ubuntu/.opam/4.02.1/lib/stublibs/ -linkpkg \
-o portuml graph.cmxa utils.cmx location.cmx driver.cmx io.cmx types.cmx values.cmx env.cmx builtins.cmx ast_utils.cmx ast.cmx lexer.cmx parser.cmx preprocess.cmx analyze_variables.cmx typer.cmx interp.cmx cfg.cmx exe_main.cmx
Byte Compiling location.ml
Byte Compiling driver.ml
Byte Compiling io.ml
Byte Compiling values.ml
Byte Compiling env.ml
Byte Compiling builtins.ml
Byte Compiling ast_utils.ml
Byte Compiling lexer.ml
Byte Compiling parser.ml
Byte Compiling preprocess.ml
Byte Compiling analyze_variables.ml
Byte Compiling typer.ml
Byte Compiling interp.ml
Byte Compiling cfg.ml
Byte Compiling exe_main.ml
Linking bytecode executable ...
ocamlfind ocamlc -package "lwt,lwt.unix" -I /home/ubuntu/.opam/4.02.1/lib/ocamlgraph -I /home/ubuntu/.opam/4.02.1/lib/stublibs/ -dllpath-pkg lwt,lwt.unix -dllpath /home/ubuntu/.opam/4.02.1/lib/stublibs/ \
-linkpkg -o portuml.byt graph.cma utils.cmo location.cmo driver.cmo io.cmo types.cmo values.cmo env.cmo builtins.cmo ast_utils.cmo ast.cmo lexer.cmo parser.cmo preprocess.cmo analyze_variables.cmo typer.cmo interp.cmo cfg.cmo exe_main.cmo
make[1]: Leaving directory `/home/ubuntu/portugol/src'
Can you write a short tutorial/explanation of how to (re)generate a new portjs.js file? Thanks.
Both pot (x, y)
function and x^y
power notation are not working at http://ossanha.github.io/portugol/www/
pot (2, 2)
[error]
Undeclared variable(s):
pot on line(s) 9
2^2
[error]
File "", from line 9 character 7 to line 9 character 10 : Cannot convert real into inteiro
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.