Thread overview | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
November 09, 2004 samples: d2html.kwd missing | ||||
---|---|---|---|---|
| ||||
(dmd-0.106, samples/d/d2html.d program) Made my own "d2html.kwd" file, from the list at: http://www.digitalmars.com/d/lex.html#keyword ./d2html hello.d hello.html For some reason, "hello.html" does not compile... > hello.html:8: expression expected, not ',' > hello.html:8: found 'args' when expecting ',' > hello.html:10: expression expected, not ',' > hello.html:10: found 'i' when expecting ',' > hello.html:10: expression expected, not ',' > hello.html:10: found 'cast' when expecting ',' > hello.html:10: C style cast deprecated, use cast(char*)(args[i]) That could be a bug with the gdc compiler, though. Also, the program output is not valid HTML. (http://validator.w3.org/file-upload.html) --anders |
November 09, 2004 Re: samples: d2html.kwd missing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund | Anders F Björklund schrieb am Dienstag, 9. November 2004 11:48: > (dmd-0.106, samples/d/d2html.d program) > > Made my own "d2html.kwd" file, from the list at: http://www.digitalmars.com/d/lex.html#keyword > > ./d2html hello.d hello.html > > > For some reason, "hello.html" does not compile... >> hello.html:8: expression expected, not ',' >> hello.html:8: found 'args' when expecting ',' >> hello.html:10: expression expected, not ',' >> hello.html:10: found 'i' when expecting ',' >> hello.html:10: expression expected, not ',' >> hello.html:10: found 'cast' when expecting ',' >> hello.html:10: C style cast deprecated, use cast(char*)(args[i]) > That could be a bug with the gdc compiler, though. It's a long standing issue - at least on Linux :) Simply change: "<code>" -> "<CODE>" "</code>" -> "</CODE>" http://svn.kuehne.cn/dstress/www/dstress.html#html_tag_case_01 Thomas |
November 09, 2004 Re: samples: d2html.kwd missing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kühne | Thomas Kühne wrote:
> It's a long standing issue - at least on Linux :)
> Simply change:
> "<code>" -> "<CODE>"
> "</code>" -> "</CODE>"
Made all the tags upper case, but got the same error...
Besides, plain old HTML *should* be case-insensitive ?
And trying to feed the compiler XHTML is even more fun.
It misses any empty element, and ignores the whole file.
--anders
|
November 09, 2004 Re: samples: d2html.kwd missing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund | Anders F Björklund schrieb am Dienstag, 9. November 2004 12:04: >> It's a long standing issue - at least on Linux :) >> Simply change: >> "<code>" -> "<CODE>" >> "</code>" -> "</CODE>" > > Made all the tags upper case, but got the same error... Besides, plain old HTML *should* be case-insensitive ? > > And trying to feed the compiler XHTML is even more fun. > It misses any empty element, and ignores the whole file. To basically see what not to do with HTML/XHTML go to http://svn.kuehne.cn/dstress/www/dstress.html#html_comment_01 scroll down and have fun ;) Thomas |
November 09, 2004 Re: samples: d2html.kwd missing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund | Anders F Björklund wrote:
> And trying to feed the compiler XHTML is even more fun.
> It misses any empty element, and ignores the whole file.
My bad. It wasn't the empty element, but that I used <pre>
Adding a <code> and </code> pair inside, and it worked OK.
--anders
|
November 09, 2004 Re: samples: d2html.kwd missing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kühne | Thomas Kühne wrote:
> To basically see what not to do with HTML/XHTML go to
> http://svn.kuehne.cn/dstress/www/dstress.html#html_comment_01
> scroll down and have fun ;)
Yeah, and html_tag_space_01 and tml_tag_space_02 are the WORST
since they force the gdc compiler into an infinite loop... :-(
Probably a big-endian issue or something ?
--anders
|
January 25, 2005 Re: samples: d2html.kwd missing (DMD 0.111) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund Attachments: | Anders F Björklund wrote: > (dmd-0.106, samples/d/d2html.d program) This bug still remains: > # ./d2html hello.d [68] Error: file 'd2html.kwd' not found And the old fix is still valid: > Made my own "d2html.kwd" file, from the list at: http://www.digitalmars.com/d/lex.html#keyword This file has now been attached, hope it can be added ? --anders |
Copyright © 1999-2021 by the D Language Foundation