Railroading the Pascal Language
11–19 of 19 posts
Re: Railroading the Pascal Language
#12There's some ambiguity about what exactly "mantissa" means in the representation of a floating point number, to the point where some people recommend avoiding it[2] (for example, the IEEE standard for floating point uses "significand" instead).
But whatever mantissa means, it's exactly not (like the page says[1]) what's "used to raise or lower a floating point literal numbers by factors of 10", that's the exponent. The mantissa, if anything, is the other part of the number, that is, what's being multiplied by the factors of 10 (but it's complicated, the wikipedia[2] page explains it).
[1] https://www.getlazarus.org/learn/language/lexical/#float_lit...
[2] https://en.wikipedia.org/wiki/Significand (section "Floating-point mantissa")
Re: Railroading the Pascal Language
#13Re: Railroading the Pascal Language
#14Re: Railroading the Pascal Language
#15Re: Railroading the Pascal Language
#16I love railroad syntax diagrams. Not sure why, but I guess it is because they work in my brain. Grammars just seem to be shown in a way that makes it easier for my visual brain to comprehend.
Re: Railroading the Pascal Language
#17Re: Railroading the Pascal Language
#18Re: Railroading the Pascal Language
#19They are buried under “Generic Constaints”.
https://www.getlazarus.org/learn/language/lexical/#generic_c...
For me, a BNF would be so much easier. It looks like a fairly easy syntax to parse.
Maybe I will try to create a toy compiler sometime.