Decipher what language or syntax this is -


we trying decipher rule syntax , unsure of origin.

here example:

(cars->type='c').and.(cars->cd_code<>'').and.('|'+invoice->type+'|'$'|aaa|').and.('|'+substr(invoice->type,1,2)+'|'$'|11|') 

specifically trying understand | , $. can let me know if have seen similar , elude source language or correct interpretation of | , $?

from it's syntax can tell "modern" language. remember "modern" alright ;)

substr .and.  ->  

are pretty modern, in compare cobol , assembling language.

(cars->type='c').and.(cars->cd_code<>'').and.('|'+invoice->type+'|'$'|aaa|').and.('|'+substr(invoice->type,1,2)+'|'$'|11|')

a pseudo code as:

(if car type 'c' , if car cd_code not empty , if invoice type 'aaa' , if invoice type first 2 letters '11') return true 

my guess using $ be:

= , <> when compare against character $ when compare array of character, i.e. strings. 

(i don't know output be, compares entire invoice type aaa , first 2 letters 11. maybe have edited code before submitting it?)

fortran 90 guess, dbase iii maybe.

dbase link: http://lynnbob.com/bob/articles/dbaseiiipluslevel2.htm

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

for dbase regarding pipes...

if pass parameters, must delimited | | (pipes). pipes, ||, required if no parameters passed. if pass parameters, delimited within ||.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -