waterbearlang/waterbear — Issue #97: extract_script can't handle multiple named containers
Author: TechplexEngineer
Created: 2011-12-30 06:49:13+00:00
State: open

If one defines a block:
control: menu('Control', [
{
label: 'When program runs...
Define:',
trigger: true,
containers: 3,
subContainerLabels: ['Autonomous Mode','Operator Control Mode'],
script: 'public class MyRobot extends SimpleRobot{\n [[1]]public void autonomous(){[[2]]\n} public void operatorControl(){[[3]]\n}}',
help: 'this trigger will run its scripts once when the program starts',
depend: 'package edu.team2648.frcEasyJ;\n\nimport edu.wpi.first.wpilibj.SimpleRobot;'
},

the extract scripts function adds a lot of undefineds to the output code.

The recursion is hurting my head tonight.