Pascal Interpreter

The place to share and discuss your Ultibo projects.
Gavinmc42
Posts: 1589
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Pascal Interpreter

Postby Gavinmc42 » Wed Feb 27, 2019 4:44 am

I was looking at a language to embedded into my PDA/eReader project.

First thought was Oberon, but I know near zero about making compilers.
And after playing with a few Oberon versions I still don't know much more.
Not sure if Oberon is multicore aware and Edison is even more obscure.

Start smaller? Pascal script is disappearing.

Script languages are interpreted and even Bash has proven useful to me in the past.
https://github.com/ghaiklor/pascal-interpreter
A Pascal interpreter written in JS :o

I think if I do it this way it will be easy to do any VC4 hardware acceleration stuff on the Ultibo side.
And because there is a nice tutorial even I should be able to learn it ;)
Gavinmc42
Posts: 1589
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Pascal Interpreter

Postby Gavinmc42 » Wed Feb 27, 2019 8:44 am

Current status says fcl-passrc is working, which according to this is a parser, which is a major part of a compiler.
http://wiki.freepascal.org/fcl-passrc

http://wiki.freepascal.org/Make_your_ow ... n_analyzer
So many things in Ultibo it is hard to keep track.

fcl-js - good for making a java script parser?
pik33
Posts: 857
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Pascal Interpreter

Postby pik33 » Thu Feb 28, 2019 10:50 am

Pascal script is disappearing.


What it means?
I have a working Paascal Script already
Gavinmc42
Posts: 1589
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Pascal Interpreter

Postby Gavinmc42 » Fri Mar 01, 2019 2:16 am

Pascal script is disappearing.

I meant hard to find via the free pascal links to RemObjects ;)
Learning how to make interpreters and compilers is on my list of things to learn, which gets longer every year :lol:

There is a lot of green in this status page now.
https://ultibo.org/wiki/Current_Status
How much of that can be used? And how to use it?

I wasted a lots of time looking for GUI/UI libs etc just the graphics OpenGL/GLES/VG stuff.
In just a few hours over 4 days I have made more progress than a whole year of looking at the old ways.
Very hard not to be distracted by what has been done before and those methods, ie massive C libs.
But I am finding those methods just don't apply to Ultibo.
Complex stuff can be done simply in Ultibo, most existing C based tutorials do simple stuff in a complex way.
Never want to look at GPU rendered triangle code ever again :lol:

I also want to explore things like alternative UI's, alternative OS's, languages, non traditional methods etc.
Since I have no traditional software training it helps not being fixated, but hinders my coding efficacy and quality.
Having lots of fun now I have pretty pictures:D
pik33
Posts: 857
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Pascal Interpreter

Postby pik33 » Sat Mar 02, 2019 8:14 am

Never want to look at GPU rendered triangle code ever again

So you can have look at GPU rendered cube and sphere in pure Pascal :)

https://github.com/pik33/ultibo_retro_g ... ltest2.pas (initializing and drawing)
https://github.com/pik33/ultibo_retro_g ... mplegl.pas (here you can find a procedure which makes a sphere, called by the first unit)

There are PascalScript directories in this archive, untouched (/scriptb) and trimmed (/script), and the scripttest unit for testing it.
Gavinmc42
Posts: 1589
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Pascal Interpreter

Postby Gavinmc42 » Sat Mar 02, 2019 10:48 am

Gee thanks, you made me look ;)
I think I'm about 2-3 years behind you and with 20 years less software experience :oops:
There's calculator code in that lot, been so long since I looked.
pik33
Posts: 857
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Pascal Interpreter

Postby pik33 » Sun Mar 03, 2019 8:12 am

There's calculator code in that lot


And it is still unfinished :( I have too much work so there is no time now to develop the GUI and its applets.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 0 guests