org.jnetstream.lang.npl
Interface NplCompiler
- All Superinterfaces:
- Compiler, com.slytechs.tools.OptionChecker, com.slytechs.tools.Tool
public interface NplCompiler
- extends com.slytechs.tools.OptionChecker, Compiler
NPL (Network Protocol Language) compiler. The interface allows NPL files to
be compiled for various target outputs. The compiler can compile the
following types of source files:
- NPL header definition files
- NPL table definition files
- NPL binding files
- NPL expression strings
The compiler can also be invoked by forwarding command line arguments for
parsing. This allows the compiler to be easily wrapped around a command line
invokable tool.
In addition to the above specified sources, the compiler can be directed to
produce object files for the following output types:
- NPL AST (Abstract Syntax Tree) which can further be traversed using tree
walkers or the visitor pattern
- binary Java byte code
- BPF (Berkley Packet Filter) byte code
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
| Methods inherited from interface com.slytechs.tools.OptionChecker |
isSupportedOption |
| Methods inherited from interface com.slytechs.tools.Tool |
getSourceVersions, run |
compileNplDefinition
void compileNplDefinition()