dada-lang / dada

I speak only of myself since I do not wish to convince, I have no right to drag others into my river, I oblige no one to follow me and everybody practices his art in his own way.
https://dada-lang.org
Apache License 2.0
444 stars 28 forks source link

Parse `else if` #209

Closed Aadamandersson closed 2 years ago

Aadamandersson commented 2 years ago

This adds support for parsing else if, which we probably want to have!

async fn main() {
    if false {
        print(1).await
    } else if true {
        print(2).await
        #! OUTPUT 2
   }
}
netlify[bot] commented 2 years ago

Deploy Preview for dada-lang ready!

Name Link
Latest commit 1707a89d9ac29bd83e75a1a763d3f9e03fe35d3a
Latest deploy log https://app.netlify.com/sites/dada-lang/deploys/63052652d062b40008991424
Deploy Preview https://deploy-preview-209--dada-lang.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

nikomatsakis commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Build succeeded: