1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
# -*- C++ -*-
#
# This is a test of the das scanner and parser software. This file tests
# comments, attribute lists with missing parts, and multiple attribute
# lists (they should all coalesce into one attribute table.
attributes {# weird
var1 {#test
string name bob; # bob is the only name allowed
string type human; # for people ...
int32 age 19;
}
var2 {
string name joe;
string type dog;
int32 age 8;
}
}
# This is a C++ type comment.
# The scanner and parser should handle a text file with several
# attribute-definintion sections.
Attributes {
var3 {
int32 size 8;
string color red;
string type art;
}
var4 {
}
}
ATTRIBUTES {
var5 {
string height 5.0in.;
string units inches;
float64 max 5.0;
}
}
attributes {
}
attributes {
var5 {
string weight 100lbs;
string color red;
}
}
#
# EOF must be at the end of this line (not on the line after)
|