Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

LispCraft

Name: Anonymous 2011-04-09 5:21

Hi, all. I finally completed Warcraft 2 implementation in LISP.
http://img859.imageshack.us/i/52320836.png/

Took me a few months, though, but mostly because I was too lazy and my DSL is still pretty buggy, has poor debugging support and long compilation times (takes about 30 seconds to reload source file). Anyway, this proves, that writing a game in Lisp is relatively easy, even for a single person.

Name: Anonymous 2013-03-19 9:04

>>89
No. How would you parse <A < B = C>: <(A < B) = C> or <A (<B = C>)?

Name: Anonymous 2013-03-19 9:27

>>90
<A in <A (<B = C>) has no left-hand side.
Even D < A < B = C > would work because after D it should expect an operator, not another operand.
There are also various precedence rules you could apply.

Name: Anonymous 2013-03-19 9:28

>>91
*wouldn't

Name: Anonymous 2013-03-19 9:54

>>91
<A in <A (<B = C>) has no left-hand side.
Usually <...> is part of some larger expression, like [X <A < B = C> Y]

Even D < A < B = C > would work because after D it should expect an operator, not another operand.
How about (list D < A < B = C >)? Why not (list (D < A) (< B = C >))?

Name: Anonymous 2013-03-19 9:55

>>91
What about (list < A < B = C >)? It will be parsed as ((list < A) ..)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List