-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5c2a3f
commit 5c013e6
Showing
3 changed files
with
47 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg | ||
// | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
/** | ||
* A CSVFileInterpreter interprets a file as CSV | ||
*/ | ||
composite blocktype CSVFileInterpreter { | ||
property delimiter oftype text: ','; | ||
property enclosing oftype text: ''; | ||
property enclosingEscape oftype text: ''; | ||
property enoding oftype text: 'utf-8'; | ||
|
||
input inputPort oftype File; | ||
output outputPort oftype Sheet; | ||
|
||
inputPort | ||
-> FileTextInterpreter | ||
-> FileCSVInterpreter | ||
-> outputPort; | ||
|
||
block FileTextInterpreter oftype TextFileInterpreter { | ||
encoding: enoding; | ||
} | ||
|
||
block FileCSVInterpreter oftype CSVInterpreter { | ||
delimiter: delimiter; | ||
enclosing: enclosing; | ||
enclosingEscape: enclosingEscape; | ||
} | ||
} |
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