Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Scheidgen
parser-exciting
Commits
910cca5e
Commit
910cca5e
authored
Apr 01, 2016
by
ankit kariryaa
Browse files
Scala reform changes
parent
1232c1e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/eu/nomad_lab/parsers/ExcitingParser.scala
View file @
910cca5e
package
eu.nomad_lab.parsers
import
eu.
{
nomad_lab
=>
lab
}
import
eu.
{
nomad_lab
=>
lab
}
import
eu.nomad_lab.DefaultPythonInterpreter
import
org.
{
json4s
=>
jn
}
import
org.
{
json4s
=>
jn
}
import
scala.collection.breakOut
object
ExcitingParser
extends
SimpleExternalParserGenerator
(
name
=
"ExcitingParser"
,
parserInfo
=
jn
.
JObject
(
...
...
@@ -13,8 +12,9 @@ object ExcitingParser extends SimpleExternalParserGenerator(
(
"parserId"
->
jn
.
JString
(
"ExcitingParser"
+
lab
.
ExcitingVersionInfo
.
version
))
::
(
"versionInfo"
->
jn
.
JObject
(
(
"nomadCoreVersion"
->
jn
.
JString
(
lab
.
NomadCoreVersionInfo
.
version
))
::
(
lab
.
ExcitingVersionInfo
.
toMap
.
map
{
case
(
key
,
value
)
=>
(
key
->
jn
.
JString
(
value
.
toString
))
(
lab
.
ExcitingVersionInfo
.
toMap
.
map
{
case
(
key
,
value
)
=>
(
key
->
jn
.
JString
(
value
.
toString
))
}(
breakOut
)
:
List
[(
String
,
jn.JString
)])
))
::
Nil
),
...
...
@@ -35,5 +35,6 @@ object ExcitingParser extends SimpleExternalParserGenerator(
dirMap
=
Map
(
"parser-exciting"
->
"parsers/exciting/parser/parser-exciting/"
,
"nomad_meta_info"
->
"nomad-meta-info/meta_info/nomad_meta_info"
,
"python"
->
"python-common/common/python/nomadcore"
)
++
DefaultPythonInterpreter
.
commonDirMapping
()
"python"
->
"python-common/common/python/nomadcore"
)
++
DefaultPythonInterpreter
.
commonDirMapping
()
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment