in reply to AVR Compiler

This looks to be pretty cool, but what exactly does it expect as input? I've thrown a bunch of different things at it, and what I always get on the second line is "Error: = expected".

I speak some AVR, so I *think* I know what I'm doing, but I can't make this play.

--Chris

e-mail jcwren

Replies are listed 'Best First'.
Re: (jcwren) Re: AVR Compiler
by Anonymous Monk on Mar 30, 2001 at 23:59 UTC
    Try something like:

    too = tree / fore;;

    You'll have to include the ";;", there's a small bug in the parser that requires the ";" to be typed twice (if you want to fix it, running the decompressed script through perltidy will make things much nicer, if still somewhat obscure).

    But wait, there's more! The assignment compiler supports unlimited numbers of parentheses!

    The assignment  too = tree / (fore + (1 * (6 - jive)));; will compile. Granted, it ain't pretty. And it doesn't deal with constants well (this = 3 * 3;; will result in instructions to multiply 3 and 3, then store the results to "this"). But it *will* compile!