This project provides a generic interface for GNU Octave with Terence Parr's popular StringTemplate V4 template engine; MATLAB is supported, too.
The concept is simple. An Octave script wraps your data in suitable Java collections, so that deeply nested data structures can be passed to the template engine just like that - and without the need for a compiled Java interface class, as it would when directly building on Octave's generic Java interface to access StringTemplate.
A major sample presents a simple compiler, which passes its entire parse tree as a single deeply structured data object to the template engine for code generation.
All you have to do is copying the wrapper script somewhere into your Octave search path and adjusting the Java class path such that the StringTemplate jar and all of your template files are found. Now, running the template expansion is one simple Octave command looking like:
txt=st4Render(groupFile, template, attribute, value, attrib2, val2, ..)

Features

  • Octave extension
  • M scripting
  • StringTemplate V4
  • Text processing
  • Code generation

Project Activity

See All Activity >

Follow StringTemplate-for-Octave

StringTemplate-for-Octave Web Site

Other Useful Business Software
Get Avast Free Antivirus | Your top-rated shield against malware and online scams Icon
Get Avast Free Antivirus | Your top-rated shield against malware and online scams

Boost your PC's defense against cyberthreats and web-based scams.

Our antivirus software scans for security and performance issues and helps you to fix them instantly. It also protects you in real time by analyzing unknown files before they reach your desktop PC or laptop — all for free.
Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of StringTemplate-for-Octave!

Additional Project Details

Registered

2016-10-04