![]() |
Forum Index : Microcontroller and PC projects : CMM2 Unpaired Brackets Box Command-
Author | Message | ||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1097 |
Hi A quick query. I added a couple of Boxes (for Bar graphs) on a CMM2 program & they worked as expected. I ran Jim's variable report in MM E V5 & it came up with a couple of unpaired brackets on the Boxes code. I removed the offending brackets & the Boxes behaved the same. Just wondering why they worked with the extra brackets?. The two lines below show the original with the extra bracket on the RGB bits & the other line without them for one of the Boxes. WN_01_Batt is a number between 10 & 15 BOX 282, 102, (WN_01_Batt - 10) * 24, 11, 1, RGB(180, 180, 180)), RGB(180, 180, 180)) BOX 282, 102, (WN_01_Batt - 10) * 24, 11, 1, RGB(180, 180, 180), RGB(180, 180, 180) Thanks Brian ChopperP |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
MMBasic uses ad hoc parsing rather than an explicitly grammar-driven tool. So long as it is "good enough" do you care... John |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
An extra closing bracket doesn't seem to cause grief. An extra opening bracket will not be so forgiving. MMEdit just counts them all and expects an equal count for opening and closing. Jim VK7JH MMedit |
||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1097 |
Thanks John & Jim ChopperP |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |