phillipstanleymarbell / Noisy-lang-compiler

Noisy language compiler
MIT License
17 stars 1 forks source link

When trying to associate a sensor to a signal the following error is given: "Variable use before declaration: '(sensorIdentifier)'" #511

Open lvrgustafsson opened 4 years ago

lvrgustafsson commented 4 years ago

Description of the bug When adding a block such as the following to a Newton description, it gives the following error: "Variable use before declaration: '(sensorIdentifier)'".

mySignal : signal =
{
        sensor = BMX055;
        derivation = temperature;
}

For example, adding the above to a Newton description would give the error: "Variable use before declaration: BMX055". This is the case when the sensor description for the BMX055 is in the same Newton description in the lines above the declaration of "mySignal".

phillipstanleymarbell commented 3 years ago

I need to fix this to unblock a few things. @angelospl, this will be necessary also for some of the things you want to do in the Noisy backend.