Tagged games
Here's a little something I was actively developing arround this time last year and recently ported to Linux. It's a little game me and a couple of guys made while in SKN Shader.
Here's a video, make sure to watch it in HD!
Land of Lisp
Posted on by Idorobots
I finally got around to writing a proper review of this book...
Lisp is a unique language that I decided to learn and use daily, so I grabbed the Land of Lisp by Conrad Barski and took off towards Alpha Centauri. It's a mighty fine read indeed, see for yourself:
This one is an oldie both in terms of its age and the programming language it uses. ChaoSnake is a "yet another Snake game" written using nothing but GLFW and OpenGL in the Pascal programming language.
Continue readingASM development log 0: The Game
Posted on by Idorobots
It's high time for more Another Syntactic Monstrosity examples, but first let's take a look at its development.
devLog
I spent the last few days on redesigning the parsing strategy, ATM the interpreter reads the raw input, lexes it using static, immutable grammar specs and then parses the token stream into an AST, all this hardcoded in D.This proves to be fast, but it's nearly non-tweakable. That's not what I intended ASM to be and it makes some neat features, such as overriding Tuple evaluator, impossible.The new parsing strategy reminds of CommonLisp reader and reader-macros:
- The raw input is passed to the lexer (written in D) that uses dynamic syntax table - a set of regular expressions describing the syntax (defined in ASM) to tokenize the input into a token stream.
- Next, the token stream is passed to the parser (written in ASM with default implementation in D), that uses ASM functions, correlated to the syntax table, to dispatch the token stream and translate it to basic, lispy S-expressions (see LR parser for details on how it's done).This will allow ASM to act like any other language, given there's the syntax table available, making it perfect for DSL programming.
For example:
(lambda (x y) (pow (+ x y) 2))
...might be written as:
[x y => (x + y)^2]
...and ASM will happily accept it. Awesome!
Continue reading