Giter Site home page Giter Site logo

EQV, IMP, XOR about aqb HOT 2 OPEN

gooofy avatar gooofy commented on May 11, 2024
EQV, IMP, XOR

from aqb.

Comments (2)

gooofy avatar gooofy commented on May 11, 2024

actually, these operators are all covered in the test suite, e.g.

https://github.com/gooofy/aqb/blob/master/tests/opint.bas

at least to some extend - do you have an example for what is not working for you?

from aqb.

blackborn66 avatar blackborn66 commented on May 11, 2024

As far as I can see, it isn't working for boolean constants.
Then the return is always FALSE (no pun intended ;)

DIM AS BOOLEAN b0, b1
b0 = TRUE
b1 = FALSE

TRACE "XOR"; " "; b0 XOR b0; " "; TRUE XOR TRUE
TRACE "XOR"; " "; b1 XOR b1; " "; FALSE XOR FALSE
TRACE "XOR"; " "; b0 XOR b1; " "; TRUE XOR FALSE
TRACE "XOR"; " "; b1 XOR b0; " "; FALSE XOR TRUE

TRACE "EQV"; " "; b0 EQV b0; " "; TRUE EQV TRUE
TRACE "EQV"; " "; b1 EQV b1; " "; FALSE EQV FALSE
TRACE "EQV"; " "; b0 EQV b1; " "; TRUE EQV FALSE
TRACE "EQV"; " "; b1 EQV b0; " "; FALSE EQV TRUE

TRACE "IMP"; " "; b0 IMP b0; " "; TRUE IMP TRUE
TRACE "IMP"; " "; b1 IMP b1; " "; FALSE IMP FALSE
TRACE "IMP"; " "; b0 IMP b1; " "; TRUE IMP FALSE
TRACE "IMP"; " "; b1 IMP b0; " "; FALSE IMP TRUE

from aqb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.