         skipSpaces()
         let ch = consumeCharacter()
         guard ch == "{" else { throw ParseError.syntax }
-        guard let name = consumeToken(by: identifierTokenRegularExpression) else { throw ParseError.syntax }
+        guard let name = consumeToken(by: refnameTokenRegularExpression) else { throw ParseError.syntax }
         
         skipSpaces()
         if consumeCharacter() != "}" {

    private lazy var numberTokenRegularExpression = try! NSRegularExpression(pattern: "[0-9]+(\\.[0-9]+)?([eE][\\+\\-]?[0-9]+)?", options: [])
    private lazy var stringTokenRegularExpression = try! NSRegularExpression(pattern: "\"([^\"]|\"\")*\"", options: [])
    private lazy var identifierTokenRegularExpression = try! NSRegularExpression(pattern: "[A-Za-z_][A-Za-z_0-9]*", options: [])

    public init(formulitic: Formulitic, formulaString: String) {
        self.formulitic = formulitic

//
//      ValueExpression ::= <NUMBER> | <STRING>
//
//      ReferenceExpression ::= '{' <REFNAME> '}'
//
//      FunctionExpression ::= <IDENTIFIER> '(' FunctionParameterList ')'
//
