summaryrefslogtreecommitdiff
path: root/test/rlhc.d/case/clang4_go.go-Z-T1--var-backend.in
diff options
context:
space:
mode:
Diffstat (limited to 'test/rlhc.d/case/clang4_go.go-Z-T1--var-backend.in')
-rw-r--r--test/rlhc.d/case/clang4_go.go-Z-T1--var-backend.in399
1 files changed, 399 insertions, 0 deletions
diff --git a/test/rlhc.d/case/clang4_go.go-Z-T1--var-backend.in b/test/rlhc.d/case/clang4_go.go-Z-T1--var-backend.in
new file mode 100644
index 00000000..be307612
--- /dev/null
+++ b/test/rlhc.d/case/clang4_go.go-Z-T1--var-backend.in
@@ -0,0 +1,399 @@
+host( "working/clang4_go.rl", 1 ) @{/*
+ * @@LANG: go
+ * @@GENERATED: true
+ */
+
+ package main
+ import "fmt"
+
+ var pos int ;
+ var line int ;
+
+
+
+
+ var cs int;
+ var blen int;
+ var buffer [1024] byte;
+
+}@
+array s16 _clang_key_offsets( 0, 182 ) = { 0, 0, 3, 6, 7, 9, 12, 13, 15, 21, 22, 42, 62, 82, 103, 124, 143, 162, 182, 0 };
+
+array byte _clang_trans_keys( 0, 126 ) = { u(10), u(34), u(92), u(10), u(39), u(92), u(10), u(10), u(33), u(10), u(33), u(47), u(10), u(48), u(57), u(48), u(57), u(65), u(70), u(97), u(102), u(10), u(10), u(34), u(39), u(47), u(48), u(95), u(33), u(46), u(49), u(57), u(58), u(64), u(65), u(90), u(91), u(96), u(97), u(122), u(123), u(126), u(10), u(34), u(39), u(47), u(48), u(95), u(33), u(46), u(49), u(57), u(58), u(64), u(65), u(90), u(91), u(96), u(97), u(122), u(123), u(126), u(10), u(34), u(39), u(47), u(48), u(95), u(33), u(46), u(49), u(57), u(58), u(64), u(65), u(90), u(91), u(96), u(97), u(122), u(123), u(126), u(10), u(33), u(34), u(39), u(47), u(48), u(95), u(35), u(46), u(49), u(57), u(58), u(64), u(65), u(90), u(91), u(96), u(97), u(122), u(123), u(126), u(10), u(34), u(39), u(46), u(47), u(95), u(120), u(33), u(45), u(48), u(57), u(58), u(64), u(65), u(90), u(91), u(96), u(97), u(122), u(123), u(126), u(10), u(34), u(39), u(47), u(95), u(33), u(46), u(48), u(57), u(58), u(64), u(65), u(90), u(91), u(96), u(97), u(122), u(123), u(126), u(10), u(34), u(39), u(47), u(95), u(33), u(46), u(48), u(57), u(58), u(64), u(65), u(90), u(91), u(96), u(97), u(122), u(123), u(126), u(10), u(34), u(39), u(46), u(47), u(95), u(33), u(45), u(48), u(57), u(58), u(64), u(65), u(90), u(91), u(96), u(97), u(122), u(123), u(126), u(10), u(34), u(39), u(47), u(95), u(33), u(46), u(48), u(57), u(58), u(64), u(65), u(70), u(71), u(90), u(91), u(96), u(97), u(102), u(103), u(122), u(123), u(126), u(0) };
+
+array s8 _clang_single_lengths( 0, 7 ) = { 0, 3, 3, 1, 2, 3, 1, 0, 0, 1, 6, 6, 6, 7, 7, 5, 5, 6, 5, 0 };
+
+array s8 _clang_range_lengths( 0, 9 ) = { 0, 0, 0, 0, 0, 0, 0, 1, 3, 0, 7, 7, 7, 7, 7, 7, 7, 7, 9, 0 };
+
+array s16 _clang_index_offsets( 0, 139 ) = { 0, 0, 4, 8, 10, 13, 17, 19, 21, 25, 27, 41, 55, 69, 84, 99, 112, 125, 139, 0 };
+
+array s8 _clang_trans_cond_spaces( -1, 0 ) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0 };
+
+array s16 _clang_trans_offsets( 0, 153 ) = { 0, 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, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 0 };
+
+array s8 _clang_trans_lengths( 0, 1 ) = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 };
+
+array s8 _clang_cond_keys( 0, 0 ) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+
+array s8 _clang_cond_targs( 0, 18 ) = { 1, 12, 9, 1, 2, 12, 3, 2, 2, 2, 4, 5, 4, 4, 5, 10, 4, 10, 6, 15, 0, 18, 18, 18, 0, 1, 1, 10, 1, 2, 13, 14, 16, 11, 17, 11, 16, 11, 16, 11, 10, 10, 1, 2, 13, 14, 16, 11, 17, 11, 16, 11, 16, 11, 10, 10, 1, 2, 13, 14, 16, 11, 17, 11, 16, 11, 16, 11, 10, 10, 4, 1, 2, 6, 14, 16, 11, 17, 11, 16, 11, 16, 11, 10, 10, 1, 2, 7, 13, 16, 8, 11, 17, 11, 16, 11, 16, 11, 10, 10, 1, 2, 13, 16, 11, 15, 11, 16, 11, 16, 11, 10, 10, 1, 2, 13, 16, 11, 16, 11, 16, 11, 16, 11, 10, 10, 1, 2, 7, 13, 16, 11, 17, 11, 16, 11, 16, 11, 10, 10, 1, 2, 13, 16, 11, 18, 11, 18, 16, 11, 18, 16, 11, 10, 0 };
+
+array s8 _clang_cond_actions( 0, 29 ) = { 2, 0, 0, 1, 2, 0, 0, 1, 2, 1, 3, 0, 0, 3, 0, 0, 0, 3, 0, 1, 0, 4, 4, 4, 0, 2, 1, 3, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 7, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 6, 11, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 10, 7, 0, 9, 9, 0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 6, 15, 17, 17, 1, 16, 16, 0, 16, 1, 16, 16, 16, 16, 16, 14, 19, 21, 21, 20, 20, 20, 1, 20, 20, 20, 20, 20, 18, 23, 25, 25, 24, 1, 24, 1, 24, 1, 24, 1, 24, 22, 15, 17, 17, 1, 16, 16, 16, 1, 16, 16, 16, 16, 16, 14, 27, 29, 29, 28, 28, 28, 1, 28, 1, 28, 28, 1, 28, 28, 26, 0 };
+
+array s8 _clang_eof_actions( 0, 26 ) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 10, 6, 14, 18, 22, 14, 26, 0 };
+
+array s8 _clang_nfa_targs( 0, 0 ) = { 0, 0 };
+
+array s8 _clang_nfa_offsets( 0, 0 ) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+
+array s8 _clang_nfa_push_actions( 0, 0 ) = { 0, 0 };
+
+array s8 _clang_nfa_pop_trans( 0, 0 ) = { 0, 0 };
+
+value int clang_start = 10;
+value int clang_first_final = 10;
+value int clang_error = 0;
+
+value int clang_en_main = 10;
+
+host( "working/clang4_go.rl", 120 ) @{
+
+ func prepare() {
+ pos = 0;
+ line = 1;
+ }@
+ {
+ cs = cast(int)clang_start;
+ }
+ host( "working/clang4_go.rl", 125 ) @{
+ }
+
+ func exec(data string) {
+ var p int = 0
+ var pe int = len(data)
+ var eof int = pe
+ }@
+ {
+ int _klen;
+ index byte _keys;
+ index s8 _ckeys;
+ int _cpc;
+ uint _trans;
+ uint _cond = 0;
+ uint _have = 0;
+ uint _cont = 1;
+ while ( _cont == 1 ) {
+
+ if ( cs == 0 )
+ _cont = 0;
+ _have = 0;
+ if ( p == pe ) {
+ if ( p == eof )
+ {
+ if ( _have == 0 ) {
+ switch ( _clang_eof_actions[cs] ) {
+ case 22 {
+ host( "working/clang4_go.rl", 29 ) ${fmt.Print( "ident(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 10 {
+ host( "working/clang4_go.rl", 30 ) ${fmt.Print( "literal(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 18 {
+ host( "working/clang4_go.rl", 31 ) ${fmt.Print( "float(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 14 {
+ host( "working/clang4_go.rl", 32 ) ${fmt.Print( "int(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 26 {
+ host( "working/clang4_go.rl", 33 ) ${fmt.Print( "hex(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 6 {
+ host( "working/clang4_go.rl", 34 ) ${fmt.Print( "symbol(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ }
+ }
+ }
+
+ if ( _have == 0 )
+ _cont = 0;
+ }
+ if ( _cont == 1 ) {
+ if ( _have == 0 ) {
+ _keys = offset( _clang_trans_keys, _clang_key_offsets[cs] );
+ _trans = cast(uint)_clang_index_offsets[cs];
+ _have = 0;
+
+ _klen = cast(int)_clang_single_lengths[cs];
+ if ( _klen > 0 ) {
+ index byte _lower;
+ index byte _mid;
+ index byte _upper;
+ _lower = _keys;
+ _upper = _keys + _klen - 1;
+ while ( _upper >= _lower && _have == 0 ) {
+ _mid = _lower + ((_upper-_lower) >> 1);
+ if ( ( deref( data, p )) < deref( _clang_trans_keys, _mid ) )
+ _upper = _mid - 1;
+ else if ( ( deref( data, p )) > deref( _clang_trans_keys, _mid ) )
+ _lower = _mid + 1;
+ else {
+ _trans += cast(uint)(_mid - _keys);
+ _have = 1;
+ }
+ }
+ if ( _have == 0 ) {
+ _keys += _klen;
+ _trans += cast(uint)_klen;
+ }
+ }
+
+ if ( _have == 0 ) {
+ _klen = cast(int)_clang_range_lengths[cs];
+ if ( _klen > 0 ) {
+ index byte _lower;
+ index byte _mid;
+ index byte _upper;
+ _lower = _keys;
+ _upper = _keys + (_klen<<1) - 2;
+ while ( _have == 0 && _lower <= _upper ) {
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
+ if ( ( deref( data, p )) < deref( _clang_trans_keys, _mid ) )
+ _upper = _mid - 2;
+ else if ( ( deref( data, p )) > deref( _clang_trans_keys, _mid + 1 ) )
+ _lower = _mid + 2;
+ else {
+ _trans += cast(uint)((_mid - _keys)>>1);
+ _have = 1;
+ }
+ }
+ if ( _have == 0 )
+ _trans += cast(uint)_klen;
+ }
+ }
+
+ _ckeys = offset( _clang_cond_keys, _clang_trans_offsets[_trans] );
+ _klen = cast(int)_clang_trans_lengths[_trans];
+ _cond = cast(uint)_clang_trans_offsets[_trans];
+ _have = 0;
+
+ _cpc = 0;
+ {
+ index s8 _lower;
+ index s8 _mid;
+ index s8 _upper;
+ _lower = _ckeys;
+ _upper = _ckeys + _klen - 1;
+ while ( _have == 0 && _lower <= _upper ) {
+ _mid = _lower + ((_upper-_lower) >> 1);
+ if ( _cpc < cast(int)deref( _clang_cond_keys, _mid ) )
+ _upper = _mid - 1;
+ else if ( _cpc > cast(int)deref( _clang_cond_keys, _mid ) )
+ _lower = _mid + 1;
+ else {
+ _cond += cast(uint)(_mid - _ckeys);
+ _have = 1;
+ }
+ }
+ if ( _have == 0 ) {
+ cs = 0;
+ _cont = 0;
+ }
+ }
+ }
+ if ( _cont == 1 ) {
+ cs = cast(int)_clang_cond_targs[_cond];
+
+ switch ( _clang_cond_actions[_cond] ) {
+ case 1 {
+ host( "working/clang4_go.rl", 16 ) ${ buffer[blen] = ={( deref( data, p ))}=;
+ blen += 1;
+ buffer[blen] = 0;
+ }$
+ }
+ case 5 {
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ }
+ case 3 {
+ host( "working/clang4_go.rl", 25 ) ${line = line + 1;
+ }$
+ }
+ case 22 {
+ host( "working/clang4_go.rl", 29 ) ${fmt.Print( "ident(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 10 {
+ host( "working/clang4_go.rl", 30 ) ${fmt.Print( "literal(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 18 {
+ host( "working/clang4_go.rl", 31 ) ${fmt.Print( "float(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 14 {
+ host( "working/clang4_go.rl", 32 ) ${fmt.Print( "int(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 26 {
+ host( "working/clang4_go.rl", 33 ) ${fmt.Print( "hex(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 6 {
+ host( "working/clang4_go.rl", 34 ) ${fmt.Print( "symbol(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ }
+ case 2 {
+ host( "working/clang4_go.rl", 16 ) ${ buffer[blen] = ={( deref( data, p ))}=;
+ blen += 1;
+ buffer[blen] = 0;
+ }$
+ host( "working/clang4_go.rl", 25 ) ${line = line + 1;
+ }$
+ }
+ case 4 {
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ host( "working/clang4_go.rl", 16 ) ${ buffer[blen] = ={( deref( data, p ))}=;
+ blen += 1;
+ buffer[blen] = 0;
+ }$
+ }
+ case 25 {
+ host( "working/clang4_go.rl", 29 ) ${fmt.Print( "ident(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ }
+ case 23 {
+ host( "working/clang4_go.rl", 29 ) ${fmt.Print( "ident(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 25 ) ${line = line + 1;
+ }$
+ }
+ case 13 {
+ host( "working/clang4_go.rl", 30 ) ${fmt.Print( "literal(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ }
+ case 11 {
+ host( "working/clang4_go.rl", 30 ) ${fmt.Print( "literal(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 25 ) ${line = line + 1;
+ }$
+ }
+ case 21 {
+ host( "working/clang4_go.rl", 31 ) ${fmt.Print( "float(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ }
+ case 19 {
+ host( "working/clang4_go.rl", 31 ) ${fmt.Print( "float(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 25 ) ${line = line + 1;
+ }$
+ }
+ case 17 {
+ host( "working/clang4_go.rl", 32 ) ${fmt.Print( "int(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ }
+ case 15 {
+ host( "working/clang4_go.rl", 32 ) ${fmt.Print( "int(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 25 ) ${line = line + 1;
+ }$
+ }
+ case 29 {
+ host( "working/clang4_go.rl", 33 ) ${fmt.Print( "hex(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ }
+ case 27 {
+ host( "working/clang4_go.rl", 33 ) ${fmt.Print( "hex(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 25 ) ${line = line + 1;
+ }$
+ }
+ case 9 {
+ host( "working/clang4_go.rl", 34 ) ${fmt.Print( "symbol(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ }
+ case 7 {
+ host( "working/clang4_go.rl", 34 ) ${fmt.Print( "symbol(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 25 ) ${line = line + 1;
+ }$
+ }
+ case 24 {
+ host( "working/clang4_go.rl", 29 ) ${fmt.Print( "ident(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ host( "working/clang4_go.rl", 16 ) ${ buffer[blen] = ={( deref( data, p ))}=;
+ blen += 1;
+ buffer[blen] = 0;
+ }$
+ }
+ case 12 {
+ host( "working/clang4_go.rl", 30 ) ${fmt.Print( "literal(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ host( "working/clang4_go.rl", 16 ) ${ buffer[blen] = ={( deref( data, p ))}=;
+ blen += 1;
+ buffer[blen] = 0;
+ }$
+ }
+ case 20 {
+ host( "working/clang4_go.rl", 31 ) ${fmt.Print( "float(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ host( "working/clang4_go.rl", 16 ) ${ buffer[blen] = ={( deref( data, p ))}=;
+ blen += 1;
+ buffer[blen] = 0;
+ }$
+ }
+ case 16 {
+ host( "working/clang4_go.rl", 32 ) ${fmt.Print( "int(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ host( "working/clang4_go.rl", 16 ) ${ buffer[blen] = ={( deref( data, p ))}=;
+ blen += 1;
+ buffer[blen] = 0;
+ }$
+ }
+ case 28 {
+ host( "working/clang4_go.rl", 33 ) ${fmt.Print( "hex(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ host( "working/clang4_go.rl", 16 ) ${ buffer[blen] = ={( deref( data, p ))}=;
+ blen += 1;
+ buffer[blen] = 0;
+ }$
+ }
+ case 8 {
+ host( "working/clang4_go.rl", 34 ) ${fmt.Print( "symbol(" );fmt.Print( line );fmt.Print( "," );fmt.Print( blen );fmt.Print( "): " );fmt.Print( string ( buffer[:blen] ) );fmt.Print( "\n" );}$
+ host( "working/clang4_go.rl", 22 ) ${ blen = 0;
+ }$
+ host( "working/clang4_go.rl", 16 ) ${ buffer[blen] = ={( deref( data, p ))}=;
+ blen += 1;
+ buffer[blen] = 0;
+ }$
+ }
+ }
+
+ if ( cs == 0 )
+ _cont = 0;
+ if ( _cont == 1 )
+ p += 1;
+
+ }}
+ }
+ }
+ host( "working/clang4_go.rl", 132 ) @{
+ }
+ func finish() {
+ if cs >= clang_first_final {
+ fmt.Println("ACCEPT")
+ } else {
+ fmt.Println("FAIL")
+ }
+ }
+ var inp []string = []string {
+ "999 0xaAFF99 99.99 /!\n!/ 'lksdj' //\n\"\n\nliteral\n\n\n\"0x00aba foobardd.ddsf 0x0.9\n",
+ "wordwithnum00asdf\n000wordfollowsnum,makes new symbol\n\nfinishing early /! unfinished ...\n",
+ };
+
+ func main() {
+ for _, data := range inp {
+ prepare()
+ exec(data)
+ finish()
+ }
+ }
+}@ \ No newline at end of file