is this some c code ? | | |
I have to retreive data from a old DOS program written in 1995 but I don't
recognize the
language -- Here's a sample of the code used in the .lib files -- Can anyone
tell me what language it is ? Thanks in advance. Here's the code sample :
if cmpy=0 cmpy+
selsuc{}
usestk{ii,is,"inf\rech"}
sucrec=ide.sucrec
if partiel=2
mn=record(numrec) complex=0
do LoadOpt,PrepTables
name_:c20=""+ppn(pnt(oo))
flush(0)
if exist(trim(name_)+".001") kill(trim(name_)+".001")
top(oo)
index(oo,1,1)
if categnb=0 & (rst<>0)
partiel=0 type4=1 do Type2b
else
if bycode { do Process_ else do Type3a }
endif
* if categnb=0 & (rst<>0) { partiel=0 type4=1 do Type2b else do Type3a }
* if mn.suivant=0 delete(mn)
lg:n3=1 seldes=""
for xy=1 to 15
trouve=0
if categ(xy)<>"" { selcateg=mid(selcateg,1,lg)+categ(xy) trouve=1 }
if des(xy)<>"" { seldes=mid(seldes,1,lg)+des(xy) trouve=1 }
if trouve lg=lg+15
next
pass(0,selcateg,seldes,numrec)
return
endif
if kqte=2
maxcmpynum=0 totsuc=0
maxnum=maxcmpynum top(suc)
while eof(suc)=0
if suc.inactif=0
totsuc+
v=recno(suc) sucnum(totsuc)=suc.numero
* x=suc.numero if x>maxnum maxnum=x
* x=recno(suc) if x>maxnum maxnum=x
allsuc(totsuc)=uplow(suc.nom)
endif
getnext(suc)
wend
maxsuc=totsuc
maxnum=totsuc
x=1 do SucListP sucaff=="û"
endif
scr:c11
root:c5
if kqte=2 root="ext\s" else root="ext\"
scr=trim(root)+"rech"
if kind=1 | ((kprix<>0) & (kvente=0)) scr=trim(root)+"rechx"
if kvente=1 scr=trim(root)+"rech"
if 0=1
window("ext\rech")
window("ext\rechx")
window("ext\rechb")
window("ext\rechxb")
endif
vinter:b
needto:b | | | | re: is this some c code ?
"chris" <p8200_NOSPAM@sympatico.ca> wrote in
news:ud5ub.3790$iT4.476677@news20.bellglobal.com:
[color=blue]
> I have to retreive data from a old DOS program written in 1995 but I
> don't recognize the
> language -- Here's a sample of the code used in the .lib files -- Can
> anyone tell me what language it is ? Thanks in advance. Here's the code
> sample :[/color]
[snip]
It's not C.
--
- Mark ->
-- | | | | re: is this some c code ?
chris wrote:[color=blue]
> I have to retreive data from a old DOS program written in 1995 but I don't
> recognize the
> language -- Here's a sample of the code used in the .lib files -- Can anyone
> tell me what language it is ? Thanks in advance. Here's the code sample :[/color]
Does this help: http://www.filext.com/detaillist.php?extdetail=lib
If not try plugging in a few other file extensions, It doesn't look like C to me
though.
Jeff | | | | re: is this some c code ?
"chris" <p8200_NOSPAM@sympatico.ca> wrote:
[color=blue]
> I have to retreive data from a old DOS program written in 1995 but I don't
> recognize the
> language -- Here's a sample of the code used in the .lib files -- Can anyone
> tell me what language it is ? Thanks in advance. Here's the code sample :[/color]
[color=blue]
> if partiel=2
> mn=record(numrec) complex=0
> do LoadOpt,PrepTables
> name_:c20=""+ppn(pnt(oo))
> flush(0)
> if exist(trim(name_)+".001") kill(trim(name_)+".001")
> top(oo)
> index(oo,1,1)[/color]
This is certainly not C. It looks like some kind of XBase. It's not
Clipper, but it may be FoxPro, or perhaps a later version of DBase.
Richard | | | | re: is this some c code ?
Maybe I'm completely wrong, I only know a handfull of programming languages,
but it looks quit alot like some sort of Basic.
Greetings,
Rick | | | | re: is this some c code ?
chris wrote:[color=blue]
>
> I have to retreive data from a old DOS program written in 1995
> but I don't recognize the language -- Here's a sample of the
> code used in the .lib files -- Can anyone tell me what language
> it is ? Thanks in advance. Here's the code sample :[/color]
.... snip ...
I suspect it is one of the every mutating non-standardized
uSoft/Gates methods of trapping the end user into interminable
updates. It might even be one of his so-called Basics. What you
show does not even have consistency in indentation nor end
markers.
Rots of Ruck. :-)
--
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address! | | | | re: is this some c code ?
CBFalconer <cbfalconer@yahoo.com> scribbled the following:[color=blue]
> chris wrote:[color=green]
>> I have to retreive data from a old DOS program written in 1995
>> but I don't recognize the language -- Here's a sample of the
>> code used in the .lib files -- Can anyone tell me what language
>> it is ? Thanks in advance. Here's the code sample :[/color]
> ... snip ...[/color]
[color=blue]
> I suspect it is one of the every mutating non-standardized
> uSoft/Gates methods of trapping the end user into interminable
> updates. It might even be one of his so-called Basics. What you
> show does not even have consistency in indentation nor end
> markers.[/color]
[color=blue]
> Rots of Ruck. :-)[/color]
I have seen many dialects of BASIC, and this looks wildly different from
any of them. I think it's not BASIC at all, but instead some
application-specific scripting language.
--
/-- Joona Palaste (palaste@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Ice cream sales somehow cause drownings: both happen in summer."
- Antti Voipio & Arto Wikla | | | | re: is this some c code ?
Thank you all for your inputs. I finally got an answer : Believe it or not,
it seems that it is some sort of assembler language !
Thanks again!
"chris" <p8200_NOSPAM@sympatico.ca> wrote in message
news:ud5ub.3790$iT4.476677@news20.bellglobal.com.. .[color=blue]
> I have to retreive data from a old DOS program written in 1995 but I don't
> recognize the
> language -- Here's a sample of the code used in the .lib files -- Can[/color]
anyone[color=blue]
> tell me what language it is ? Thanks in advance. Here's the code sample :
>
>
> if cmpy=0 cmpy+
> selsuc{}
> usestk{ii,is,"inf\rech"}
> sucrec=ide.sucrec
> if partiel=2
> mn=record(numrec) complex=0
> do LoadOpt,PrepTables
> name_:c20=""+ppn(pnt(oo))
> flush(0)
> if exist(trim(name_)+".001") kill(trim(name_)+".001")
> top(oo)
> index(oo,1,1)
> if categnb=0 & (rst<>0)
> partiel=0 type4=1 do Type2b
> else
> if bycode { do Process_ else do Type3a }
> endif
> * if categnb=0 & (rst<>0) { partiel=0 type4=1 do Type2b else do Type3a }
> * if mn.suivant=0 delete(mn)
> lg:n3=1 seldes=""
> for xy=1 to 15
> trouve=0
> if categ(xy)<>"" { selcateg=mid(selcateg,1,lg)+categ(xy) trouve=1 }
> if des(xy)<>"" { seldes=mid(seldes,1,lg)+des(xy) trouve=1 }
> if trouve lg=lg+15
> next
> pass(0,selcateg,seldes,numrec)
> return
> endif
> if kqte=2
> maxcmpynum=0 totsuc=0
> maxnum=maxcmpynum top(suc)
> while eof(suc)=0
> if suc.inactif=0
> totsuc+
> v=recno(suc) sucnum(totsuc)=suc.numero
> * x=suc.numero if x>maxnum maxnum=x
> * x=recno(suc) if x>maxnum maxnum=x
> allsuc(totsuc)=uplow(suc.nom)
> endif
> getnext(suc)
> wend
> maxsuc=totsuc
> maxnum=totsuc
> x=1 do SucListP sucaff=="û"
> endif
>
> scr:c11
> root:c5
> if kqte=2 root="ext\s" else root="ext\"
> scr=trim(root)+"rech"
> if kind=1 | ((kprix<>0) & (kvente=0)) scr=trim(root)+"rechx"
> if kvente=1 scr=trim(root)+"rech"
> if 0=1
> window("ext\rech")
> window("ext\rechx")
> window("ext\rechb")
> window("ext\rechxb")
> endif
>
> vinter:b
> needto:b
>
>
>
>[/color] | | | | re: is this some c code ?
On Mon, 17 Nov 2003 15:04:52 -0500, chris wrote:
[color=blue]
> Thank you all for your inputs. I finally got an answer : Believe it or not,
> it seems that it is some sort of assembler language ![/color]
I don't believe it. Please elaborate. For which processor is
this supposedly assembly language? | | | | re: is this some c code ?
Sheldon Simms <sheldonsimms@yahoo.com> scribbled the following:[color=blue]
> On Mon, 17 Nov 2003 15:04:52 -0500, chris wrote:[color=green]
>> Thank you all for your inputs. I finally got an answer : Believe it or not,
>> it seems that it is some sort of assembler language ![/color][/color]
[color=blue]
> I don't believe it. Please elaborate. For which processor is
> this supposedly assembly language?[/color]
Must be a canny 'ard processor for its assembly language to support
if...endif constructs. Cannot be a real silicon one, can it?
--
/-- Joona Palaste (palaste@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"You will be given the plague."
- Montgomery Burns | | | | re: is this some c code ?
Joona I Palaste wrote:
[color=blue]
> I have seen many dialects of BASIC, and this looks wildly different
> from any of them.[/color]
Yes. I believe most (if not all) BASICs use "If ... Then", and
the code sample had no "Then". I also don't believe I've ever
seen a BASIC with a "&" AND operator.
--
|_ CJSonnack <Chris@Sonnack.com> _____________| How's my programming? |
|_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL |
|_____________________________________________|___ ____________________| | | | | re: is this some c code ?
"chris" <p8200_NOSPAM@sympatico.ca> wrote:
[color=blue]
> Thank you all for your inputs. I finally got an answer : Believe it or not,
> it seems that it is some sort of assembler language ![/color]
I don't believe it. I've never seen an assembler language with database
functions (top, index, record) built in.
Richard | | | | re: is this some c code ?
"Programmer Dude" <Chris@Sonnack.com> wrote in message
news:3FB93173.F393D341@Sonnack.com...[color=blue]
> Joona I Palaste wrote:
>[color=green]
> > I have seen many dialects of BASIC, and this looks wildly different
> > from any of them.[/color]
>
> Yes. I believe most (if not all) BASICs use "If ... Then", and
> the code sample had no "Then". I also don't believe I've ever
> seen a BASIC with a "&" AND operator.[/color]
Several use no "then" to indicate a block "if". In one I know of, (somewhat
perversely) "then" is optional for a single-line "if", but required as the
last thing on a line for a block "if". But I guess that's what happens when
there is no standard, thankfully unlike C. | | | | re: is this some c code ?
"Joona I Palaste" <palaste@cc.helsinki.fi> schrieb im Newsbeitrag
news:bpbcg7$cuu$2@oravannahka.helsinki.fi...[color=blue]
> Sheldon Simms <sheldonsimms@yahoo.com> scribbled the following:[color=green]
> > On Mon, 17 Nov 2003 15:04:52 -0500, chris wrote:[color=darkred]
> >> Thank you all for your inputs. I finally got an answer : Believe it or[/color][/color][/color]
not,[color=blue][color=green][color=darkred]
> >> it seems that it is some sort of assembler language ![/color][/color]
>[color=green]
> > I don't believe it. Please elaborate. For which processor is
> > this supposedly assembly language?[/color]
>
> Must be a canny 'ard processor for its assembly language to support
> if...endif constructs. Cannot be a real silicon one, can it?
>[/color]
Certainly not "assembly language", but IIRC some high level "niche"
languages had the word assembler in their name ("list assembler" or so).
But that was uh quite a while ago.
Robert | | | | re: is this some c code ?
Richard Bos <rlb@hoekstra-uitgeverij.nl> scribbled the following:[color=blue]
> "chris" <p8200_NOSPAM@sympatico.ca> wrote:[color=green]
>> Thank you all for your inputs. I finally got an answer : Believe it or not,
>> it seems that it is some sort of assembler language ![/color][/color]
[color=blue]
> I don't believe it. I've never seen an assembler language with database
> functions (top, index, record) built in.[/color]
Whatever next? Object-oriented assembly language with an in-built
garbage collector? (Anyone want to guess which language that garbage
collector would then be written in?)
--
/-- Joona Palaste (palaste@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"No, Maggie, not Aztec, Olmec! Ol-mec!"
- Lisa Simpson | | | | re: is this some c code ?
Seems that this assembler language is very close to dbase as for the file
structure and to Basic for the coding. I don't know much more if I do and
since so much people were puzzled by the answer, I'll post it back on the
NG.
Thanks again. | | | | re: is this some c code ?
chris <p8200_NOSPAM@sympatico.ca> scribbled the following:[color=blue]
> Seems that this assembler language is very close to dbase as for the file
> structure and to Basic for the coding. I don't know much more if I do and
> since so much people were puzzled by the answer, I'll post it back on the
> NG.[/color]
[color=blue]
> Thanks again.[/color]
I still don't think it's assembler language at all. Where did you see it
being called assembler language?
--
/-- Joona Palaste (palaste@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"A bicycle cannot stand up by itself because it's two-tyred."
- Sky Text | | | | re: is this some c code ?
Joona I Palaste <palaste@cc.helsinki.fi> wrote in message news:<bpcqv7$8ns$1@oravannahka.helsinki.fi>...[color=blue]
> Richard Bos <rlb@hoekstra-uitgeverij.nl> scribbled the following:[color=green]
> > I don't believe it. I've never seen an assembler language with database
> > functions (top, index, record) built in.[/color]
>
> Whatever next? Object-oriented assembly language with an in-built
> garbage collector? (Anyone want to guess which language that garbage
> collector would then be written in?)[/color]
Why, it would be etched in the silicon! Mark and sweep would be
accomplished by a little arm attached to a brush moving around in RAM,
sweeping bits into a bit bucket. Then, of course, you'd get the
classic HBF opcode (Halt if Bit bucket Full), so beloved on old IBM
machines. As lazy programmers would code this as HCF (Halt and Catch
Fire), we'd cull the herd and make the world more clueful. Net result:
Fewer people asking about Ada on comp.lang.c. | | | | re: is this some c code ?
In <bpbcg7$cuu$2@oravannahka.helsinki.fi> Joona I Palaste <palaste@cc.helsinki.fi> writes:
[color=blue]
>Sheldon Simms <sheldonsimms@yahoo.com> scribbled the following:[color=green]
>> On Mon, 17 Nov 2003 15:04:52 -0500, chris wrote:[color=darkred]
>>> Thank you all for your inputs. I finally got an answer : Believe it or not,
>>> it seems that it is some sort of assembler language ![/color][/color]
>[color=green]
>> I don't believe it. Please elaborate. For which processor is
>> this supposedly assembly language?[/color]
>
>Must be a canny 'ard processor for its assembly language to support
>if...endif constructs. Cannot be a real silicon one, can it?[/color]
There have been some "high level" assemblers providing such constructs
in order to reduce the amount of spaghetti in the source code. I guess
no true assembly programmer would use such a thing, but some vendors
tried their hands at selling them.
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Dan.Pop@ifh.de | | | | re: is this some c code ?
In <bpcov5$1m56vi$1@ID-149533.news.uni-berlin.de> "Alex" <me@privacy.net> writes:
[color=blue]
>Several use no "then" to indicate a block "if". In one I know of, (somewhat
>perversely) "then" is optional for a single-line "if", but required as the
>last thing on a line for a block "if". But I guess that's what happens when
>there is no standard, thankfully unlike C.[/color]
There has always been a BASIC standard, namely the K'n'K book, but many
implementors took the liberty of doing things their own way. Sometimes
to improve the K'n'K specification (completely lacking structured
programming features), sometimes because their implementation had to fit
into something like 4 KB of ROM and some features had to be "censored".
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Dan.Pop@ifh.de | | | | re: is this some c code ?
Joona I Palaste <palaste@cc.helsinki.fi> wrote in message news:<bpcqv7$8ns$1@oravannahka.helsinki.fi>...[color=blue]
> Richard Bos <rlb@hoekstra-uitgeverij.nl> scribbled the following:[color=green]
> > "chris" <p8200_NOSPAM@sympatico.ca> wrote:[color=darkred]
> >> Thank you all for your inputs. I finally got an answer : Believe it or not,
> >> it seems that it is some sort of assembler language ![/color][/color]
>[color=green]
> > I don't believe it. I've never seen an assembler language with database
> > functions (top, index, record) built in.[/color]
>
> Whatever next? Object-oriented assembly language with an in-built
> garbage collector? (Anyone want to guess which language that garbage
> collector would then be written in?)[/color]
<OT>
Ever seen an ARM9 with the Jazelle java accelerator? It's not so far
from what you describe!
</OT> | | | | re: is this some c code ?
Dan Pop <Dan.Pop@cern.ch> scribbled the following:[color=blue]
> In <bpbcg7$cuu$2@oravannahka.helsinki.fi> Joona I Palaste <palaste@cc.helsinki.fi> writes:[color=green]
>>Sheldon Simms <sheldonsimms@yahoo.com> scribbled the following:[color=darkred]
>>> On Mon, 17 Nov 2003 15:04:52 -0500, chris wrote:
>>>> Thank you all for your inputs. I finally got an answer : Believe it or not,
>>>> it seems that it is some sort of assembler language ![/color]
>>[color=darkred]
>>> I don't believe it. Please elaborate. For which processor is
>>> this supposedly assembly language?[/color]
>>
>>Must be a canny 'ard processor for its assembly language to support
>>if...endif constructs. Cannot be a real silicon one, can it?[/color][/color]
[color=blue]
> There have been some "high level" assemblers providing such constructs
> in order to reduce the amount of spaghetti in the source code. I guess
> no true assembly programmer would use such a thing, but some vendors
> tried their hands at selling them.[/color]
Righty-ho. I forgot assembler was a different thing from raw machine
code. However, it's not *MUCH* different. IMHO there should be a 1-1
correspondence between an assembler instruction and the generated
machine code instruction. But YOMBD.
--
/-- Joona Palaste (palaste@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"It's time, it's time, it's time to dump the slime!"
- Dr. Dante | | | | re: is this some c code ?
In <bpdlnr$pmo$1@oravannahka.helsinki.fi> Joona I Palaste <palaste@cc.helsinki.fi> writes:
[color=blue]
>Righty-ho. I forgot assembler was a different thing from raw machine
>code. However, it's not *MUCH* different. IMHO there should be a 1-1
>correspondence between an assembler instruction and the generated
>machine code instruction. But YOMBD.[/color]
Such a correspondence ceased to exist by the time macroassemblers have
been introduced, long before you were born.
A more accurate definition is that it is possible to control each
generated instruction from an assembly source code.
But even then, there are assemblers that can automatically fix
programmer mistakes: an out of range branch can be replaced by a short
branch on the opposite condition and a jump to the desired label.
I've used such an assembler as the back end of a C compiler that didn't
bother to check the validity of its generated branches (DECUS C on the
PDP-11).
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Dan.Pop@ifh.de |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,419 network members.
|