Dec 082017
BOB the object oriented interpreter (subset of C++) by David Betz. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
BOB.C | 1972 | 881 | deflated |
BOB.DOC | 3188 | 979 | deflated |
BOB.EXE | 44726 | 20128 | deflated |
BOB.H | 9587 | 2726 | deflated |
BOBCOM.C | 32257 | 6956 | deflated |
BOBDBG.C | 3411 | 1140 | deflated |
BOBFCN.C | 5954 | 1747 | deflated |
BOBINT.C | 12259 | 2956 | deflated |
BOBMEM.C | 13872 | 3732 | deflated |
BOBSCN.C | 8166 | 2350 | deflated |
FACT.BOB | 210 | 127 | deflated |
HELLO.BOB | 119 | 78 | deflated |
MAKEFILE | 208 | 131 | deflated |
OBJ.BOB | 1606 | 453 | deflated |
T.BOB | 225 | 138 | deflated |
TEST.BOB | 173 | 124 | deflated |
TYPE.BOB | 221 | 153 | deflated |
X.BOB | 285 | 120 | deflated |
Y.BOB | 406 | 225 | deflated |
Download File BOB13.ZIP Here
Contents of the BOB.DOC file
Bob was written by:
David Betz
P.O. Box 144
Peterborough, NH 03458
(603) 924-4145
Bob is available free of charge for non-commercial use. If you're
interested in using Bob commercially, please contact me at the above
address.
Bob Syntax:
Class definition:
class [ : ]
{... }
Member definition:
... ;
static... ;
( [ ] ) ;
static ( [ ] ) ;
Function definition:
[ :: ]
( [ [ ; ] )
{... }
Statement:
if ( ) [ else ] ;
while ( )
do while ( ) ;
for ( ; ; )
break ;
continue ;
return [ ] ;
[ ] ;
{... }
;
Expression:
,
=
+=
-=
*=
/=
%=
&=
|=
^=
<<=
>>=
? :
||
&&
|
^
&
==
!=
<
<=
>=
>
<<
>>
+
-
*
/
%
-
!
~
++
--
++
--
new ( [ ] )
( [ ] )
-> ( [ ] )
'[' ( )
nil
Lvalue:
'[' ']'
Global Variables:
stdinThe standard input file pointer
stdoutThe standard output file pointer
stderrThe standard error file pointer
Runtime Routines:
typeof(x)Returns the type of its argument
newvector(s)Returns a new vector of the specified size
newstring(s)Returns a new string of the specified size
sizeof(x)Returns the size of a vector or string
fopen(name,mode)Opens a file (returns a file pointer)
fclose(fp)Closes a file
getc(fp)Gets a character from an open file
putc(ch,fp)Writes a character to an open file
print(x)Prints an object to stdout
getarg(n)Gets argv[n]
system(cmd)Executes a shell command
David Betz
P.O. Box 144
Peterborough, NH 03458
(603) 924-4145
Bob is available free of charge for non-commercial use. If you're
interested in using Bob commercially, please contact me at the above
address.
Bob Syntax:
Class definition:
class
{
Member definition:
static
static
Function definition:
[
( [
{
Statement:
if (
while (
do
for (
break ;
continue ;
return [
[
{
;
Expression:
-
!
~
++
--
new
nil
Lvalue:
Global Variables:
stdinThe standard input file pointer
stdoutThe standard output file pointer
stderrThe standard error file pointer
Runtime Routines:
typeof(x)Returns the type of its argument
newvector(s)Returns a new vector of the specified size
newstring(s)Returns a new string of the specified size
sizeof(x)Returns the size of a vector or string
fopen(name,mode)Opens a file (returns a file pointer)
fclose(fp)Closes a file
getc(fp)Gets a character from an open file
putc(ch,fp)Writes a character to an open file
print(x)Prints an object to stdout
getarg(n)Gets argv[n]
system(cmd)Executes a shell command
December 8, 2017
Add comments