Anchor automatically adds curly braces and semicolons to code written in various programming languages, saving typing and making programs easier to read. It lets you pretend to be coding in Python or Lua while actually writing standard C, Java, PHP, C++, .NET, C#, or D. A script may generate files in the target language and invoke the compiler. An example bash script integrates with TCC to make runnable "scripts" with the speed of C. The scripts are easily modified to target another compiler or interpreter.
|Tags||Programming - Tools Development compilation fixes Refactoring Software Development|
Release Notes: The documentation was updated with examples of executable C scripts using the new simplified syntax. The commands are now better explained and links to similar tools are included. An example Makefile rule was added. A -keep command was added to keep a copy of temporary .c source code around for debugging.
Release Notes: This release enables argument passing from the shebang line in source files. (it was not impossible after all). The handling of enumeration defines has significantly improved, but declaring a variable of type enum won't work without a semicolon. See test.anch for examples. Documentation updates have been made. Using the -p option will leave the #define on its own line. Users may want to update the lexer in their favorite IDE or text editor for proper syntax highlighting and hints when composing .anch sources for their programming language of choice.
Release Notes: The bracket adding algorithm was changed so that it stays within #ifdef and comment blocks. Cases where comments were appearing on the wrong lines were fixed.
Release Notes: Handling of in-line C-style comments was fixed. Several matching rules were rewritten.
Release Notes: -tabs and -drop options were added. Many tests were run. Bugs and corner cases with earlier options were fixed.