[fpc-devel] Hi listers, , , , I am trying to translate a C header with H2PAS, however, I have nver done it, so the difficulties are meaningful., , I am blind, I use screen readers and IUP is the single graphical interface library accessible to program with a screen reader and to navigate in the output dialogs. As my purpose is not to produce beautiful windows, my public will be blind or visually impaired people, users of screen readers, for me, it's wonderful to use IUP to create my dialogs.,,I have tested IUP with Lua. This library is really what I want. But I would like to use IUP with Pascal, but unfortunately there's no a IUP binding for Pascal. Now, it's time to do it and I want to be successful in this task., , I am rying to translate headers with this commandline:, , h2pas -d {C file name},,With this command, I translated the first one. Now I am trying to translate iupkey.h, but I am not able to identify the errors., , After "h2pas -d iupkey.h", I got the following message, but I could not interprete It. What is wrong? Regarding the source code is downloaded from the official website, why have I sintax errors? Illegal characters? Why?, , at line 21 error : syntax error,at line 41 error : syntax error,Illegal character in line 45, "#define K_at '@' /* 64 */", Illegal character in line 73, "#define K_backslash '\\' /* 92 */", Illegal character in line 73, "#define K_backslash '\\' /* 92 */",Illegal character in line 75,"#define K_circum '^' /* 94 */",Illegal character in line 77,"#define K_grave '`' /* 96 */", Illegal character in line 113, "#define K_BS '\b' /* 8 */", Illegal character in line 114, "#define K_TAB '\t' /* 9 */", Illegal character in line 115,"#define K_LF '\n' /* 10 (0x0A) not a real key, is a combination of CR with a modifier, just to document */", Illegal character in line 116,"#define K_CR '\r' /* 13 (0x0D) */",LexLib: yytext overflow, , , , The C source is attached., , Thank ou in advance, any help is welcome!, , Luciano

Luciano de Souza luchyanus at gmail.com
Wed Jun 15 01:34:24 CEST 2011


Hi listers,


I am trying to translate a C header with H2PAS, however, I have nver 
done it, so the difficulties are meaningful.

I am blind, I use screen readers and IUP is the single graphical 
interface library accessible to program with a screen reader and to 
navigate in the output dialogs. As my purpose is not to produce 
beautiful windows, my public will be blind or visually impaired people, 
users of screen readers, for me, it's wonderful to use IUP to create my 
dialogs.

I have tested IUP with Lua. This library  is really what I want. But I 
would like to use IUP with Pascal, but unfortunately there's no a IUP 
binding for Pascal. Now, it's time to do it and I want to be successful 
in this task.

I am rying to  translate headers with this commandline:

h2pas -d {C file name}

With this command, I translated the first one. Now I am trying to 
translate iupkey.h, but I am not able to identify the errors.

After "h2pas -d iupkey.h", I got the following message, but I could not 
interprete It. What is wrong? Regarding the source code is downloaded 
from the official website, why have I sintax errors? Illegal characters? 
Why?

at line 21 error : syntax error
at line 41 error : syntax error
Illegal character in line 45
"#define K_at          '@'   /* 64 */"
Illegal character in line 73
"#define K_backslash   '\\'  /* 92 */"
Illegal character in line 73
"#define K_backslash   '\\'  /* 92 */"
Illegal character in line 75
"#define K_circum      '^'   /* 94 */"
Illegal character in line 77
"#define K_grave       '`'   /* 96 */"
Illegal character in line 113
"#define K_BS     '\b'       /* 8 */"
Illegal character in line 114
"#define K_TAB    '\t'       /* 9 */"
Illegal character in line 115
"#define K_LF     '\n'       /* 10 (0x0A) not a real key, is a 
combination of CR with a modifier, just to document */"
Illegal character in line 116
"#define K_CR     '\r'       /* 13 (0x0D) */"
LexLib: yytext overflow



The C source is attached.

Thank ou in advance, any help is welcome!

Luciano



More information about the fpc-devel mailing list