Preprocessor (extension point)
From BioUML platform
- Identifier
- ru.biosoft.plugins.javascript.preprocessor
- Plugin
- ru.biosoft.plugins.javascript
- Since
- 0.8.7
- Registry
PreprocessorRegistry
Description
JavaScript preprocessor is used to simplify JavaScript code by using additional blocks and constructions. For example, R preprocessor allows to use R commands in script document directly and it's wraps to JavaScript instructions automatically.
Configuration Markup
<!ELEMENT preprocessor> <!ATTLIST preprocessor name CDATA #REQUIRED class CDATA #REQUIRED >
- name
- the name of preprocessor.
- class
- the fully-qualified name of preprocessor class (must implement
Preprocessorinterface).
Example
The following is an example of R preprocessor definition:
<extension id="R preprocessor" point="ru.biosoft.plugins.javascript.preprocessor">
<preprocessor
name="R script"
class="ru.biosoft.plugins.jri.RPreprocessor"
/>
</extension>