private void parseSentence ( ) { if ( sentence == null ) { return ; } definition = sentence ; values = new ArrayList < DSLVariableValue > ( ) ; sentence = null ; int variableStart = definition . indexOf ( "{" ) ; while ( variableStart >= 0 ) { int variableEnd = getIndexForEndOfVariable ( definition , variableStart ) ; String variable = definition . substring ( variableStart + 1 , variableEnd ) ; values . add ( parseValue ( variable ) ) ; variableStart = definition . indexOf ( "{" , variableEnd ) ; } }
to differentiate value from data - type from restriction