BASIC_generic is an implementation of Full BASIC independent of CPU's and OS's.
The source can be aaplied to
FPC 3.0.0 + Lazarus 1.6.2
FPC 3.0.2 + Lazarus 1.6.4
FPC 3.0.4 + Lazarus 1.8.0
On porting to another platform, rewrite EOL's in sconsts.pas.
MyUtils.pas and Stack.pas may need to be rewritten..
BreakPoint button on the Debug dialog shall not work.
Known Incompatibly with Full BASIC standard
The acuracy of trigonometric functions does not meet with the requirement of Full BASIC standard. For example, SIN(PI) or COS(PI/2) returns zero, which is not acurate because PI is an approximate number, which is rational.