[examples] write examples directory

This commit is contained in:
Allen Webster
2021-10-08 11:08:51 -07:00
parent 0b27e69ec4
commit 8432125f55
10 changed files with 85 additions and 23 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
/*
** Example: type-metadata
** Example: type metadata
**
** This is a hand written header to be included into the final program to
** define types that will be used to layout the metadata tables created by the
@@ -1,5 +1,5 @@
/*
** Example: type-metadata
** Example: type metadata
**
** This file shows including the generated type information into a final
** program and using that type info to unpack a buffer of data.
+4 -2
View File
@@ -1,5 +1,5 @@
/*
** Example: type-metadata
** Example: type metadata
**
** TODO full commentary
**
@@ -1152,7 +1152,8 @@ main(int argc, char **argv)
fclose(c);
}
// print state
// print diagnostics of the parse analysis
#if 0
for (GEN_TypeInfo *type = first_type;
type != 0;
type = type->next)
@@ -1207,4 +1208,5 @@ main(int argc, char **argv)
MD_S8VArg(map_case->out->string));
}
}
#endif
}
+1 -1
View File
@@ -1,5 +1,5 @@
/*
** Example: type-metadata
** Example: type metadata
**
** TODO full commentary
**