Programming

{"content":{"id":1768,"title":"Weekly Links - Christmas 2020 Edition","body":"\u003cul\u003e\r\n\u003cli\u003eLast year's Christmas weekly links were the result me getting really sick for about a week and not being able to get off the couch. \u003ca href=\"https://sananab.ca/posts/1068\"\u003eThey are excellent and slightly horrifying.\u003c/a\u003e\u003c/li\u003e\r\n\u003cli\u003eAncient Clickhole: \u003ca href=\"https://youtu.be/t3czOnLydXo\"\u003eThis Will Change The Way You Watch ‘It’s A Wonderful Life’\u003c/a\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003ca href=\"https://github.com/anvaka/atree#\"\u003eBeautiful Christmas tree\u003c/a\u003e in a very small amount of Javascript.\u003c/li\u003e\r\n\u003cli\u003e\u003ca href=\"https://www.youtube.com/watch?v=jrFU5wyd_C0\"\u003eDeath\u003c/a\u003e.\u003c/li\u003e\r\n\u003cli\u003eAncient JoshReads: \u003ca href=\"https://joshreads.com/2005/08/feminist-chicks-dig-me/\"\u003eFeminist chicks dig me!\u003c/a\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003ca href=\"https://www.youtube.com/watch?v=_QhuBIkPXn0\"\u003eThe very first Homey D. Clown appearance\u003c/a\u003e.\u003c/li\u003e\r\n\u003cli\u003e\u003ca href=\"https://www.window-swap.com/\"\u003eOpen a window somewhere in the world\u003c/a\u003e.\u003c/li\u003e\r\n\u003c/ul\u003e","publication_date":"2020-12-20T00:00:00.000Z","created_at":"2020-12-19T20:12:58.000Z","updated_at":"2020-12-20T01:57:10.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=weekly_links\"\u003eweekly_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ancient_clickhole\"\u003eancient_clickhole\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=the_forties\"\u003ethe_forties\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=movies\"\u003emovies\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=javascript\"\u003ejavascript\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=red\"\u003ered\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=green\"\u003egreen\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=plants\"\u003eplants\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=portugal\"\u003eportugal\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=britain\"\u003ebritain\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=latin\"\u003elatin\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=portuguese\"\u003eportuguese\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=comics\"\u003ecomics\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=old_comics\"\u003eold_comics\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=death\"\u003edeath\u003c/a\u003e"}

Weekly Links - Christmas 2020 Edition

{"content":{"id":1610,"title":"Daily Link","body":"\u003cp\u003e\u003ca href=\"https://archive.org/details/lisp15programmer00john/page/30\"\u003eThe LISP 1.5 Programmer Manual\u003c/a\u003e has got to be one of the cooler pieces of computing history that you can just aimlessly click around.\u003c/p\u003e","publication_date":"2020-09-04T12:00:00.000Z","created_at":"2020-09-02T23:42:38.000Z","updated_at":"2020-09-04T15:48:42.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=retrocomputing\"\u003eretrocomputing\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=the_sixties\"\u003ethe_sixties\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=twentieth_century\"\u003etwentieth_century\u003c/a\u003e"}

Daily Link

The LISP 1.5 Programmer Manual has got to be one of the cooler pieces of computing history that you can just aimlessly click around.

{"content":{"id":1600,"title":"Daily Link","body":"\u003cp\u003eOCAML has been in my peripheral vision for years. I know some other languages were implemented in it, and it's in the weird world of non-LISP functional languages. Also it has an extremely good name. \u003ca href=\"https://www2.lib.uchicago.edu/keith/ocaml-class/class-01.html\"\u003eThis free book\u003c/a\u003e is apparently classic and I'm liking my skim through it. Now I need a little personal project to put it to the test...\u003c/p\u003e","publication_date":"2020-08-29T12:00:00.000Z","created_at":"2020-08-27T04:28:13.000Z","updated_at":"2020-08-29T14:34:17.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ocaml\"\u003eocaml\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=books\"\u003ebooks\u003c/a\u003e"}

Daily Link

OCAML has been in my peripheral vision for years. I know some other languages were implemented in it, and it's in the weird world of non-LISP functional languages. Also it has an extremely good name. This free book is apparently classic and I'm liking my skim through it. Now I need a little personal project to put it to the test...

{"content":{"id":1588,"title":"Daily Link","body":"\u003cp\u003e\u003ca href=\"https://www.youtube.com/watch?v=Djcy40bTgP4\"\u003eBrian Kernighan on trying out new languages.\u003c/a\u003e\u003c/p\u003e","publication_date":"2020-08-22T12:00:00.000Z","created_at":"2020-08-20T03:38:14.000Z","updated_at":"2020-08-20T03:38:14.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e"}

Daily Link

{"content":{"id":1530,"title":"Daily Link","body":"\u003cp\u003e\u003ca href=\"https://esolangs.org/wiki/HQ9%2B\"\u003eThe greatest programming language ever made\u003c/a\u003e.\u003c/p\u003e","publication_date":"2020-07-14T12:00:00.000Z","created_at":"2020-07-09T00:10:32.000Z","updated_at":"2020-07-14T14:43:35.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e"}

Daily Link

{"content":{"id":1526,"title":"Daily Link","body":"\u003cp\u003eThe first edition of the \"Starting Forth\" is \u003ca href=\"https://1scyem2bunjw1ghzsf1cjwwn-wpengine.netdna-ssl.com/wp-content/uploads/2018/01/Starting-FORTH.pdf\"\u003efree online\u003c/a\u003e through the copyright owner, and is a bit of a classic among certain older programmers. Even if you're not interested, please take note of all the groovy drawings.\u003c/p\u003e","publication_date":"2020-07-12T12:00:00.000Z","created_at":"2020-07-06T19:45:25.000Z","updated_at":"2020-07-12T12:32:21.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=forth\"\u003eforth\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=twentieth_century\"\u003etwentieth_century\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=the_eighties\"\u003ethe_eighties\u003c/a\u003e"}

Daily Link

The first edition of the "Starting Forth" is free online through the copyright owner, and is a bit of a classic among certain older programmers. Even if you're not interested, please take note of all the groovy drawings.

{"content":{"id":1522,"title":"Daily Link","body":"\u003cp\u003eSomeone made a Zip-a-Tone-ish library for SVGs. Even if you don't care about that, \u003ca href=\"https://riccardoscalco.it/textures/\"\u003ethe website looks really cool\u003c/a\u003e.\u003c/p\u003e","publication_date":"2020-07-10T12:00:00.000Z","created_at":"2020-07-05T01:02:47.000Z","updated_at":"2020-07-05T01:02:47.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=design\"\u003edesign\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=javascript\"\u003ejavascript\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e"}

Daily Link

Someone made a Zip-a-Tone-ish library for SVGs. Even if you don't care about that, the website looks really cool.

{"content":{"id":1274,"title":"Daily Link","body":"\u003cp\u003e\r\nSomeone made an unbelievably-beautiful \u003ca href=\"https://www.jwz.org/blog/2020/02/evoboxx-life-synthesizer/\"\u003eConway's Game of Life machine\u003c/a\u003e.\r\n\u003c/p\u003e","publication_date":"2020-04-04T12:00:00.000Z","created_at":"2020-03-29T21:51:23.000Z","updated_at":"2020-03-29T21:51:40.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=design\"\u003edesign\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=games\"\u003egames\u003c/a\u003e"}

Daily Link

Someone made an unbelievably-beautiful Conway's Game of Life machine.

{"content":{"id":1132,"title":"Daily Link","body":"\u003cp\u003e\r\nIn CSS, easing is \u003ca href=\"https://kilianvalkhof.com/2020/css-html/using-easing-for-more-than-just-css-transitions/\"\u003enot just for transitions\u003c/a\u003e.\r\n\u003c/p\u003e","publication_date":"2020-02-21T12:00:00.000Z","created_at":"2020-02-19T01:39:49.000Z","updated_at":"2020-02-19T01:39:49.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=css\"\u003ecss\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=design\"\u003edesign\u003c/a\u003e"}

Daily Link

In CSS, easing is not just for transitions.

{"content":{"id":1130,"title":"Daily Links","body":"\u003cp\u003e\r\nVery interesting \u003ca href=\"https://drewdevault.com/2020/01/04/Slow.html\"\u003esize/speed/system call\u003c/a\u003e benchmarks for 'Hello World' in a number of languages. 'Hello World' might seem trivial and non-comprehensive, but the results are extremely surprising and enlightening.\r\n\u003c/p\u003e","publication_date":"2020-02-19T12:00:00.000Z","created_at":"2020-02-19T01:35:13.000Z","updated_at":"2020-02-19T17:26:07.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e"}

Daily Links

Very interesting size/speed/system call benchmarks for 'Hello World' in a number of languages. 'Hello World' might seem trivial and non-comprehensive, but the results are extremely surprising and enlightening.

{"content":{"id":1124,"title":"Daily Link","body":"\u003cp\u003e\r\n\u003ca href=\"https://github.com/s-macke/VoxelSpace\"\u003eVoxel Space\u003c/a\u003e: an interesting article about a major leap in 90s computer graphics. Lots of pretty pictures to help demonstrate.\r\n\u003c/p\u003e","publication_date":"2020-02-17T12:00:00.000Z","created_at":"2020-02-16T20:07:56.000Z","updated_at":"2020-02-16T20:08:06.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=python\"\u003epython\u003c/a\u003e"}

Daily Link

Voxel Space: an interesting article about a major leap in 90s computer graphics. Lots of pretty pictures to help demonstrate.

{"content":{"id":1121,"title":"Daily Link","body":"\u003cp\u003e\r\nI talked about De Stijl yesterday. Piet is a programming language \u003ca href=\"https://www.dangermouse.net/esoteric/piet/samples.html\"\u003ewhose programs can look like De Stijl paintings\u003c/a\u003e, although you can see from the samples that people have created all kinds of patterns, like the giant red circle that calculates an approximation of Pi, or the 'Hello World' that looks like the world.\r\n\u003c/p\u003e","publication_date":"2020-02-15T12:00:00.000Z","created_at":"2020-02-14T23:16:00.000Z","updated_at":"2020-02-15T12:25:09.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=netherlands\"\u003enetherlands\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=twentieth_century\"\u003etwentieth_century\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=de_stijl\"\u003ede_stijl\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=painting\"\u003epainting\u003c/a\u003e"}

Daily Link

I talked about De Stijl yesterday. Piet is a programming language whose programs can look like De Stijl paintings, although you can see from the samples that people have created all kinds of patterns, like the giant red circle that calculates an approximation of Pi, or the 'Hello World' that looks like the world.

{"content":{"id":1117,"title":"Daily Link: Banwhich","body":"\u003cp\u003e\r\n\u003ca href=\"https://github.com/imsnif/bandwhich\"\u003eBetter network usage visualization for the console\u003c/a\u003e\r\n\u003c/p\u003e","publication_date":"2020-02-13T12:00:00.000Z","created_at":"2020-02-12T20:16:42.000Z","updated_at":"2020-02-14T00:25:51.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programs\"\u003eprograms\u003c/a\u003e"}

Daily Link: Banwhich

{"content":{"id":1108,"title":"Daily Link: Lazy Enumerators In Ruby","body":"\u003cp\u003e\r\n\u003ca href=\"https://blog.saeloun.com/2019/10/23/ruby-lazy-enumerators.html\"\u003eFun with Ruby\u003c/a\u003e\r\n\u003c/p\u003e","publication_date":"2020-02-09T12:00:00.000Z","created_at":"2020-02-05T22:16:21.000Z","updated_at":"2020-02-05T22:16:21.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ruby\"\u003eruby\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e"}

Daily Link: Lazy Enumerators In Ruby

{"content":{"id":1076,"title":"Weekly Links - Oh Lord Don't Let Them Drop That Atomic Bomb on Me Edition","body":"\u003cul\u003e\r\n\u003cli\u003e\r\nRemember when Rosanne got Tom Arnold his own show? \u003ca href=\"https://youtu.be/8Q18uKadksk\"\u003eA very tongue-in-cheek ad\u003c/a\u003e for the show, followed by Stephen King advertising the new Dark Tower book. \r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nA Tumblr entirely dedicated to \u003ca href=\"https://antiriker.tumblr.com/\"\u003eanti-Riker memes\u003c/a\u003e. Reading it through, I get the feeling that the maintainer doesn't actually hate Riker at all!\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nOn a related note, what are the chances that the new Picard show's secret plot twist is time travel and/or time travelling into the other timeline's past? Star Trek's last non-prequel was eighteen years ago and they've now got countless prequels-to-prequels. They seem pretty committed to being prequel-only at this point.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nIn my opinion, the greatest - or at least greatest looking - web comic of all time is \u003ca href=\"https://www.alessonislearned.com/\"\u003eA Lesson Is Learned But The Damage Is Irreversible\u003c/a\u003e, which was active in the 00s. The illustrator later did the artwork for the game Braid.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nSome extremely brave scientists in India blog about \u003ca href=\"https://pogirigowrishankar.wordpress.com/2011/04/24/king-cobra-nests/\"\u003eresearching King Cobra nests\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://www.lysator.liu.se/c/ten-commandments.html\"\u003eThe Ten C Commandments\u003c/a\u003e. Not to be confused with the Biggie Smalls song.\r\n\u003c/li\u003e\r\n\u003c/ul\u003e","publication_date":"2020-01-06T00:00:00.000Z","created_at":"2020-01-05T18:15:57.000Z","updated_at":"2020-01-05T18:22:47.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=books\"\u003ebooks\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=scary\"\u003escary\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=weekly_links\"\u003eweekly_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=tv\"\u003etv\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=sitcoms\"\u003esitcoms\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=star_trek\"\u003estar_trek\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=tng\"\u003etng\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=old_memes\"\u003eold_memes\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=games\"\u003egames\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=old_comics\"\u003eold_comics\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=the_zeroes\"\u003ethe_zeroes\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=snakes\"\u003esnakes\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=animals\"\u003eanimals\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=c\"\u003ec\u003c/a\u003e"}

Weekly Links - Oh Lord Don't Let Them Drop That Atomic Bomb on Me Edition

  • Remember when Rosanne got Tom Arnold his own show? A very tongue-in-cheek ad for the show, followed by Stephen King advertising the new Dark Tower book.
  • A Tumblr entirely dedicated to anti-Riker memes. Reading it through, I get the feeling that the maintainer doesn't actually hate Riker at all!
  • On a related note, what are the chances that the new Picard show's secret plot twist is time travel and/or time travelling into the other timeline's past? Star Trek's last non-prequel was eighteen years ago and they've now got countless prequels-to-prequels. They seem pretty committed to being prequel-only at this point.
  • In my opinion, the greatest - or at least greatest looking - web comic of all time is A Lesson Is Learned But The Damage Is Irreversible, which was active in the 00s. The illustrator later did the artwork for the game Braid.
  • Some extremely brave scientists in India blog about researching King Cobra nests.
  • The Ten C Commandments. Not to be confused with the Biggie Smalls song.
{"content":{"id":1058,"title":"'Build Your Own Lisp' Solutions: 6.6","body":"\u003cp\u003e\u003cb\u003eQ:\u003c/b\u003e Change the grammar to recognize decimal numbers such as 0.01, 5.21, or 10.2.\u003c/p\u003e\r\n\u003cp\u003e\u003cb\u003eA:\u003c/b\u003e \r\n\u003cpre\u003e\u003ccode class=\"cpp\"\u003e\" \\\r\nnumber : /-?[0-9]+(.[0-9]+)*/ ; \\\r\noperator : 'add' | 'sub' | 'mul' | 'div'; \\\r\nexpr : \u0026lt;number\u003e | '(' \u0026lt;operator\u003e \u0026lt;expr\u003e+ ')' ; \\\r\nlispy : /^/ \u0026lt;operator\u003e \u0026lt;expr\u003e+ /$/ ; \\\r\n\"\u003c/code\u003e\u003c/pre\u003e\r\n\u003c/p\u003e","publication_date":"2020-01-04T00:00:00.000Z","created_at":"2019-12-10T00:09:33.000Z","updated_at":"2020-07-06T19:13:57.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=c\"\u003ec\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=lisp\"\u003elisp\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=build_your_own_lisp\"\u003ebuild_your_own_lisp\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=answers\"\u003eanswers\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e"}

'Build Your Own Lisp' Solutions: 6.6

Q: Change the grammar to recognize decimal numbers such as 0.01, 5.21, or 10.2.

A:

"                                                   \
number   : /-?[0-9]+(.[0-9]+)*/ ;                   \
operator : 'add' | 'sub' | 'mul' | 'div';           \
expr     : <number> | '(' <operator> <expr>+ ')' ;  \
lispy    : /^/ <operator> <expr>+ /$/ ;             \
"