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
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
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