[svn:parrot] r40382 - trunk/compilers/pirc/src
kjs at svn.parrot.org
kjs at svn.parrot.org
Sun Aug 2 13:35:33 UTC 2009
Author: kjs
Date: Sun Aug 2 13:35:33 2009
New Revision: 40382
URL: https://trac.parrot.org/parrot/changeset/40382
Log:
Add a STRING pointer to lexer which will temporarily be used for storing STRINGs that are created inthe lexer. Once PIRC is completely changed to use StRINGs instead of C strings, it can be stored in yylval union in the parser.
Modified:
trunk/compilers/pirc/src/pircompiler.h
Modified: trunk/compilers/pirc/src/pircompiler.h
==============================================================================
--- trunk/compilers/pirc/src/pircompiler.h Sun Aug 2 12:39:19 2009 (r40381)
+++ trunk/compilers/pirc/src/pircompiler.h Sun Aug 2 13:35:33 2009 (r40382)
@@ -146,6 +146,12 @@
annotation *annotations;
unsigned num_annotations;
+
+ /* XXX Temporary STRING pointer, for the conversion of all lexer code to use
+ STRINGs instead of c strings (char pointers). Cannot change yylval union yet,
+ as it's better to have duplicated functionality, then removing the old c strings
+ stuff*/
+ STRING *sval;
} lexer_state;
More information about the parrot-commits
mailing list