www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - samples: d2html.kwd missing

reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
(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
Nov 09 2004
next sibling parent reply Thomas =?UTF-8?B?S8O8aG5l?= <thomas-dloop kuehne.cn> writes:
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
Nov 09 2004
parent reply =?UTF-8?B?QW5kZXJzIEYgQmrDtnJrbHVuZA==?= <afb algonet.se> writes:
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
Nov 09 2004
next sibling parent reply Thomas =?UTF-8?B?S8O8aG5l?= <thomas-dloop kuehne.cn> writes:
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
Nov 09 2004
parent =?UTF-8?B?QW5kZXJzIEYgQmrDtnJrbHVuZA==?= <afb algonet.se> writes:
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
Nov 09 2004
prev sibling parent =?UTF-8?B?QW5kZXJzIEYgQmrDtnJrbHVuZA==?= <afb algonet.se> writes:
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
Nov 09 2004
prev sibling parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Anders F Björklund wrote:

 (dmd-0.106, samples/d/d2html.d program)
This bug still remains:

                         [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
Jan 25 2005