Hi Kiste, Thanks for your thoughts. I will not add the '//'. Adding multi line comments is not as straight forward as single line.
About floats. I used them once in de Si5351 library (clock generator) but that was the only time I needed it. BTW. There seems to be an issue with floats, Rob Hamerling mentioned that yesterday to me (he also registered as issue on GitHub at the compiler repository). If you use float and you assign an integer value, the compiler gets into an endless loop. A way around this to assign a float. var float my_float_variable my_float_variable = 32000 -- This will make the compiler hang my_float_variable = 32000.0 -- This wil work So even if you did not use it yet, make sure to use the workaround when you do. I could not pinpoint the problem yet. Needs more investigation. Kind regards, Rob ________________________________ Van: 'Oliver Seitz' via jallib <[email protected]> Verzonden: zondag 29 november 2020 08:41 Aan: [email protected] <[email protected]> Onderwerp: Re: [jallib] Re: How to improve the popularity of JAL? Ok then, here's another comment on the comments about comments... I'm living with the comments as they are now. -- for Jal, ; for assembler. I don't need another symbol for one-line comments. What I'm missing is {...} or (*...*) from pascal for multi-line comments. I have no idea how a compiler works, so I have no idea how difficult this could be. Jal has multi-line comments, but they look rather strange... if false then -- this the start of a comment *+*+* The compiler never sees this *+*+* end if -- end comment, actually In general, what I want is a compiler that produces working, reliable output. It is me who has to give input that fits. The syntax is there to use it, not to alter it. Keep it simple, not too much redundancy. One of the last additions Kyle made (reluctantly) was the addition of float variables. Has anyone ever used them? I haven't. They're not needed in a microcontroller. Jal has variables of arbitrary length, you can store everything as fixed point numbers. The distance to the moon in nanometres? You will need byte*10 to store that number. The number of atoms in the universe? byte*35 is enough. You can go to byte*255 on PIC18. I don't need floats. And I don't need another symbol for one-line comments. If you do, put this in your compiler script: cat my_syntax.jal | sed -e 's.//.--.g' >official_syntax.jal Greets, Kiste -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/1578812937.2458535.1606635661066%40mail.yahoo.com<https://groups.google.com/d/msgid/jallib/1578812937.2458535.1606635661066%40mail.yahoo.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/AM0PR07MB62412831EDF3FFFF9B0EE327E6F60%40AM0PR07MB6241.eurprd07.prod.outlook.com.
