Decrypt which language or syntax it is

We are trying to decipher some syntax of the rules and are not sure of its origin.

Here is an example:

(CARS->TYPE='C').and.(CARS->CD_CODE<>'').and.('|'+INVOICE->TYPE+'|'$'|AAA|').and.('|'+SUBSTR(INVOICE->TYPE,1,2)+'|'$'|11|')

In particular, we are trying to understand |and $. Can someone tell me if they saw similar ones and eluded the source language or the correct interpretation |and $?

+5
source share
4 answers

From this syntax, we can say that it is a โ€œmodernโ€ language. Remember "modern" well;)

substr
.and. 
-> 

pretty modern compared to cobol and assembly language.

(- > TYPE = 'C') (- > CD_CODE < > '')..... ( '|' + INVOICE- > + | '$ '| |') . ( '|' + SUBSTR (INVOICE- > TYPE, 1,2) + '|' $'| 11 |')

:

(if car type is 'C'
and
if car cd_code is not empty
and
if invoice type is 'AAA'
and
if invoice type first 2 letters are '11')
then return true

$:

= and <> are only when compare against a character
$ when compare array of character, i.e. strings.

( , , AAA 11. , ?)

Fortran 90 - , DBase III.

: http://lynnbob.com/bob/articles/DBASEIIIPlusLevel2.htm

Fortran: http://www.ews.uiuc.edu/~mrgates2/docs/fortran.html

DBASE ...

, | | (). , ||, , . , ||.

+1

BASIC, Pascal, C, Java, perl, Python, COBOL FORTRAN, . , , .

.

'|' pipe |, , , , , , CSV. , , , | INVOICETYPE | something | AAA |

$. " " .

0

: .

This is a rather complicated language. I do not believe that he has an operator ->, but he seems to have one =>. Perhaps this is a vendor extension in your fragment.

Pro-Fortran certification is the operator .and..

0
source

Similar to FORTRAN-ish. However, ->it is not a standard operator. |- it's just a string (not like an operator), but $it certainly looks like an operator, maybe something to indicate the formatting of the lines? causing this cform is the fact that it always appears between groups of lines.

0
source

All Articles