breuleux / liso

Operator syntax for the Lisp family of languages (Racket implementation)
31 stars 4 forks source link

Operators cannot be mixed in the order given <= : #2

Open ovidiugabriel opened 4 years ago

ovidiugabriel commented 4 years ago

Trying to run the example on the first page with DrRacket, version 7.7

#lang planet breuleux/liso

fib[n] =
   @if n <= 1:
      n
      fib[n - 1] + fib[n - 2]

fib[30]

I get the following error.

Welcome to DrRacket, version 7.7 [3m].
Language: planet breuleux/liso, with debugging; memory limit: 128 MB.
Operators cannot be mixed in the order given <= :

Interactions disabled.
ovidiugabriel commented 3 years ago

When running fact.liso

Operators cannot be mixed in the order given ! :

And so on.

breuleux commented 3 years ago

Yeah, I don't know, it's been too long 😬

You can try putting parentheses around n <= 1, I suppose.