Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
arpeggio-gm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
郭家华
arpeggio-gm
Commits
1c76b784
Commit
1c76b784
authored
Aug 07, 2014
by
Igor Dejanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various changes on textx and pyflies languages.
parent
ab924aea
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
textx.py
arpeggio/textx.py
+0
-0
experiment.pf
examples/textx/experiment.pf
+1
-1
pyflies.tx
examples/textx/pyflies.tx
+17
-3
No files found.
arpeggio/textx.py
View file @
1c76b784
This diff is collapsed.
Click to expand it.
examples/textx/experiment.pf
View file @
1c76b784
...
@@ -49,7 +49,7 @@ experiment {
...
@@ -49,7 +49,7 @@ experiment {
# Variable_name, type, optional label
# Variable_name, type, optional label
# Type can be: str, int, float or enumerated list
# Type can be: str, int, float or enumerated list
subject {
subject {
full_name str "First and last name"
full_name str
ing
"First and last name"
age int
age int
gender [Male, Female] "Gender"
gender [Male, Female] "Gender"
}
}
...
...
examples/textx/pyflies.tx
View file @
1c76b784
/*
/*
This is a TextX
defini
tion of pyFlies DSL for Reaction Time test
This is a TextX
specifica
tion of pyFlies DSL for Reaction Time test
experiments definition.
experiments definition.
Author: Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com>
Author: Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com>
Copyright: (c) 2014 Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com>
Copyright: (c) 2014 Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com>
...
@@ -21,7 +21,7 @@ TestType:
...
@@ -21,7 +21,7 @@ TestType:
;
;
TestParam:
TestParam:
name=ID TestParamValue
label=TestParamLabel?
name=ID TestParamValue
;
;
TestParamValue:
TestParamValue:
...
@@ -34,7 +34,7 @@ TestParamLabel:
...
@@ -34,7 +34,7 @@ TestParamLabel:
Block:
Block:
Intro|Test|Sequence|Randomize
Intro|Test|Sequence|Randomize
|Subject
;
;
Experiment:
Experiment:
...
@@ -65,6 +65,20 @@ Intro:
...
@@ -65,6 +65,20 @@ Intro:
/====*/
/====*/
;
;
Subject:
'subject' '{'
attribute+=SubjectAttribute
'}'
;
SubjectAttribute:
name=ID type=("int"|"string"|"float"|Enum) label=STRING?
;
Enum:
'[' values+={ID ','} ']'
;
// Special rule for comments
// Special rule for comments
Comment:
Comment:
/#.*$/
/#.*$/
...
...
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