Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-04

for FPC JVM users: Small tool to help converting R.java to Pascal

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

leledumbo

I've developed a small tool to help converting the autogenerated R.java to Pascal. It's made in a quick and dirty way, but it works. It could be added to build script to automatically do the conversion before compiling.

It takes 1 command line parameter which is the path to R.java and outputs the result to standard output, so you might want to redirect it to a file. Note that the tool doesn't care whether one of the classes' name is a Pascal reserved word, please modify the source code as necessary if you want to avoid it (e.g. when a class name is string, convert is to strings).

http://free-pascal-general.1045716.n5.nabble.com/file/n5632880/Rj2p.pas Rj2p.pas

Reply by email