summaryrefslogtreecommitdiff
path: root/web/yacco2/diagrams/rcsym.txt
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/yacco2/diagrams/rcsym.txt
Initial commit
Diffstat (limited to 'web/yacco2/diagrams/rcsym.txt')
-rw-r--r--web/yacco2/diagrams/rcsym.txt46
1 files changed, 46 insertions, 0 deletions
diff --git a/web/yacco2/diagrams/rcsym.txt b/web/yacco2/diagrams/rcsym.txt
new file mode 100644
index 0000000000..22c8339561
--- /dev/null
+++ b/web/yacco2/diagrams/rcsym.txt
@@ -0,0 +1,46 @@
+/*
+file: rcsym.txt
+Why: raw character symbols vocabulary to parse.
+Note: raw-characters is shown for clarity. It is the keyword trigger
+ that calls this grammar. Parsed is comments onwards.
+*/
+raw-characters
+// comments
+(file-name o2_chars,name-space NS_o2_chars) {
+// 7 bit char set
+"x00" (sym-class raw_nul{
+ user-declaration
+ public:
+ raw_nul(INT Ext_file,size_t Pos);
+ ***
+ user-implementation
+ raw_nul::raw_nul(INT Ext_file,size_t Pos){
+ T_CTOR_RW("x00",T_raw_nul_,false,false,Ext_file,Pos)}
+ ***
+ }
+)
+ ....
+"!" (sym-class raw_exclam{
+ user-declaration
+ public:
+ raw_exclam(INT Ext_file,size_t Pos);
+ ***
+ user-implementation
+ raw_exclam::raw_exclam(INT Ext_file,size_t Pos){
+ T_CTOR_RW("!",T_raw_exclam_,false,false,Ext_file,Pos)}
+ ***
+ }
+)
+ ....
+// 8 bit char set
+"xff" (sym-class raw_xff{
+ user-declaration
+ public:
+ raw_xff(INT Ext_file,size_t Pos);
+ ***
+ user-implementation
+ raw_xff::raw_xff(INT Ext_file,size_t Pos){
+ T_CTOR_RW("xff",T_raw_xff_,false,false,Ext_file,Pos)}
+ ***
+ }
+} \ No newline at end of file