lcalaresu / Java-SCPI-parser

SCPI-style command parser and interpreter for Java

Home Page:http://nf1198.github.io/Java-SCPI-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java-SCPI-parser

The SCPIParser library provides an easy to use SCPI-style command parser.

Refer to the SCPIParser class documentation for usage and examples.

Example Usage:

class SimpleSCPIParser extends SCPIParser {
  public SimpleSCPIParser() {
    addHandler("*IDN?", this::IDN);
  }

  String IDN(String[] args) {
    return "Simple SCPI Parser";
  }
}
 
SimpleSCPIParser myParser = new SimpleSCPIParser();
  for (String result : myParser.accept("*IDN?")) {
    System.out.println(result);
  }

About

SCPI-style command parser and interpreter for Java

http://nf1198.github.io/Java-SCPI-parser


Languages

Language:Java 100.0%