-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from MassBank/release-2.2.8
Release version 2.2.8
- Loading branch information
Showing
36 changed files
with
3,126 additions
and
2,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 7 additions & 15 deletions
22
MassBank-Project/MassBank-lib/src/main/java/massbank/RecordParser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,12 @@ | ||
package massbank; | ||
|
||
import java.util.Set; | ||
|
||
import org.petitparser.tools.GrammarParser; | ||
|
||
/** | ||
* Record parser. To parse an Record consider the following code: | ||
* | ||
* <pre> | ||
* Parser record = new RecordParser(); | ||
* Object result = record.parse(your_record_content); | ||
* System.out.println(result.value); | ||
* </pre> | ||
*/ | ||
import java.util.Set; | ||
|
||
public class RecordParser extends GrammarParser { | ||
public RecordParser(Record callback, Set<String> config) { | ||
super(new RecordParserDefinition(callback, config)); | ||
} | ||
} | ||
|
||
public RecordParser(Set<String> config) { | ||
super(new RecordParserDefinition(config)); | ||
} | ||
} |
Oops, something went wrong.