Semantics Validation

Semantics validation


/*

    Module: Getter
    Arity: >=3
    _
    import _COMPARE_EXPLICIT from './DEBUG.LIB' as COMPARE_E
    COMPARE_E ( [ [a,b],[b,c],[a,c] ], ()=>{ console.warning'Not all comparisons made in Module: Getter' } )
    _
*/
function Getter( a,b,c,... ){
    let ret = 'unk'
    if( a>=b ){
        ret = 'gt'
    } else {
        ret = 'lt'
    }
    return ret
}

I don't know, maybe the COMPARE_EXPLICIT debug module would receive the Getter module source as an array of (statement) string(s) which could be parsed and evaluated for correctness