Dexels / navajo

Navajo Service-oriented Applications
GNU Affero General Public License v3.0
9 stars 5 forks source link

Navascript 3 does not support [/@] #607

Closed aschoneveld closed 2 years ago

aschoneveld commented 2 years ago

This gives a lexical analysis error because of [/@]:

map.truust {

    $customer {
        [/@] {

        }
    }

    message "Customer" {
        $customer {
            property "Name" = $name;
        }
    }
}
aschoneveld commented 2 years ago

Rewrite this to something nicer in NS3:

map.truust {

    $customer {
        $name = 'Kibbeling';
    }

which will result in:

<map.truust>
     <field name="customer>
          <map ref="[/@]">
                <field name="name"> <expression value="'Kibbeling'"/></field>
          </map>

</map.truust>