Commit 1c76b784 authored by Igor Dejanovic's avatar Igor Dejanovic

Various changes on textx and pyflies languages.

parent ab924aea
This diff is collapsed.
...@@ -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 string "First and last name"
age int age int
gender [Male, Female] "Gender" gender [Male, Female] "Gender"
} }
......
/* /*
This is a TextX definition of pyFlies DSL for Reaction Time test This is a TextX specification 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:
/#.*$/ /#.*$/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment