The programming environment »Open Roberta Lab« by Fraunhofer IAIS enables children and adolescents to program robots. A variety of different programming blocks are provided to program motors and sensors of the robot. Open Roberta Lab uses an approach of graphical programming so that beginners can seamlessly start coding. As a cloud-based application, the platform can be used without prior installation of specific software but runs in any popular browser, independent of operating system and device.
Apache License 2.0
125
stars
121
forks
source link
[NXT] "start" as a function name results in invalid NXC code #125
Naming a function start results in NXC compiler errors (probably because it's an existing identifier/keyword), so it should be excluded from valid function names.
To Reproduce
Steps to reproduce the behavior:
Create a program like the following:
Try to compile the NXC program (send to brick)
...
Profit "The program could not be transformed into machine code."
Describe the bug
Naming a function
start
results in NXC compiler errors (probably because it's an existing identifier/keyword), so it should be excluded from valid function names.To Reproduce Steps to reproduce the behavior:
Create a program like the following:
Try to compile the NXC program (send to brick)
...
Profit"The program could not be transformed into machine code."The generated NXC code:
The compiler errors:
Edit:
start
is a keyword in NXC to start anothertask
(Thread).Expected behavior
The generated NXC code can be compiled.