neato links

http://alumni.cs.ucr.edu/~lgao/teaching/bison.html – lex/yacc prototyping setup. doesn’t actually work in ubuntu, and it’d be great to port to something easier-to-bootstrap from, like tcc.

https://www.gnu.org/software/bison/ – there are much better examples for your future main.y file, main.l file, main.c file, main.h file in here. calc, for example, just to prove it works.

then scrape out calc’s guts, init a repository, and do your prototyping.

blender python prototyping setup


pretty much the fastest you can get from zero to a blender scripting environment for rapid prototyping.


create file plugin.py

import bpy
class Plugin:
  def __init__(self):
  def go(self):
x = Plugin()

from the commandline

blender ide.blend

blender launches. delete the default cube.

set the timeline to the text editor pane.

pull the text editor window frame up so you have more room to read and write.

pull down your top window frame so you see the python result pane.

text editor – open – plugin.py

there are buttons to enable syntax highlighting and line numbers.

alt-s to save your script.

alt-p to run your script.

https://docs.blender.org/api/master/ – api documentation

20190701 followup:

https://www.tutorialspoint.com/awk/awk_basic_examples.htm – dae yacc and lex syntax look like awk?

Author: Mike Godfrey

tech in halifax ns

Leave a Reply

Your email address will not be published. Required fields are marked *