Thorsten Hindermann wrote:
Peter Gerwinski wrote:
I don't quite understand what the pindent program is intended to do: Read Pascal source with Intel inline assembler and output reformatted Pascal source with AT&T inline assembler? IMO both tasks are quite different (while they require similar techniques) and should be in two separate programs.
No, if pindent detect the keyword asm the assembler statments between "(" and ")" are pushed to a stack like the pascal source. The next step is to interpret/convert the statments in one directions in case of the command-line switches (AT&T -> Intel or Intel -> AT&T). One switch for AT&T-syntax to Intel the other for Intel to AT&T. When all work is done (pascal and inline-assembler) the stack(s) are written into the output file. But in the moment Eike and I discus this feature. We both not good assembler programmers so we look for anybody who will help us or give an advice for this feature to implement it in pindent or not. On the other side if pindent read the pascal source why not read the inline-assembler and make the interpret/convert operation? What do you and the GPC-community think about this feature in pindent? Let us know your opinions to this feature.
I agree with Peter. These are really two different tasks that should be done by different programs (keyword modularity). Of course, the programs might share some code (units etc.)...
Frank