Re: [fpc-pascal] range check error while evaluating constant (number literals larger than$7fffffffffffffff)
On 06 Dec 2011, at 00:39, Bernd wrote: > var > x : QWord; > > begin > x := $; > writeln(IntToHex(x, 16)); > end. All constants > $ are always parsed as int64. You have to explicitly typecast them to qword() if you want the compiler to treat them that way. Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] range check error while evaluating constant (number literals larger than$7fffffffffffffff)
var x : QWord; begin x := $; writeln(IntToHex(x, 16)); end. this happens at compile time when trying to evaluate the literal $ testus.lpr(16,8) Warning: range check error while evaluating constants But it still seems to evaluate it correctly and the variable will have the correct value, so its not a show stopper for me, just an annoying warning. It seems it starts complaining as soon as it exceeds the range of a signed 64 bit. I am using the 2_6 branch on linux/i386 Bernd ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Markdown parser?
On 5 December 2011 13:55, Leonardo M. Ramé wrote: > Thanks Graeme, I'll take a look at it. Sorry I couldn't be of more help. I don't know what you want to do with a MarkDown parser, but I thought it worth mentioning the following. Another very nice alternative to MarkDown is AsciiDoc http://www.methods.co.nz/asciidoc/ AsciiDoc is the closest text markup format to "plain text" - like you would use in emails or a README.txt file. As an example, all of the Git project's help is written in AsciiDoc format. Reading the "raw documentation source" of git, is a clear as reading a text email. :-) -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Markdown parser?
> > From: Graeme Geldenhuys >To: Leonardo M. Ramé ; FPC-Pascal users discussions > >Sent: Monday, December 5, 2011 8:41 AM >Subject: Re: [fpc-pascal] Markdown parser? > >On 3 December 2011 14:46, Leonardo M. Ramé wrote: >> Hi, does anyone knows if there is a Markdown parser already developed for >> FreePascal?. > >Sorry, I looked everywhere on my work system and our server. I can't >seem to find my markdown parser anywhere. That'll teach me to use SCM >systems more often. > >I remembered I modeled the code after a very fast Java Markdown >parser. The code wasn't difficult, so it should go relatively quickly >to implement a Object Pascal version again. > >I did a quick Google search, here is the link to the Java MarkDown >parser I based my code on. > > https://github.com/rjeschke/txtmark/ > >You can see from the notes in that URL, it passes all the MarkDown >tests, and compared to other MarkDown implementation, txtmark >absolutely flies! > >This is what I wanted to implement with MarkDown. An alternative GUI >fpdoc content editor that uses Markdown syntax. > http://www.markdownpad.com/ > > >-- >Regards, > - Graeme - > Thanks Graeme, I'll take a look at it. Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Markdown parser?
On 3 December 2011 14:46, Leonardo M. Ramé wrote: > Hi, does anyone knows if there is a Markdown parser already developed for > FreePascal?. Sorry, I looked everywhere on my work system and our server. I can't seem to find my markdown parser anywhere. That'll teach me to use SCM systems more often. I remembered I modeled the code after a very fast Java Markdown parser. The code wasn't difficult, so it should go relatively quickly to implement a Object Pascal version again. I did a quick Google search, here is the link to the Java MarkDown parser I based my code on. https://github.com/rjeschke/txtmark/ You can see from the notes in that URL, it passes all the MarkDown tests, and compared to other MarkDown implementation, txtmark absolutely flies! This is what I wanted to implement with MarkDown. An alternative GUI fpdoc content editor that uses Markdown syntax. http://www.markdownpad.com/ -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal