Patch from James Morrison
authorJames A. Morrison <ja2morri@uwaterloo.ca>
Fri, 5 Dec 2003 06:45:48 +0000 (06:45 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 5 Dec 2003 06:45:48 +0000 (22:45 -0800)
* lex.l: Add \t as a whitespace character.
* treelang.texi (Lexical Syntax): Document a tab as whitespace.

From-SVN: r74311

gcc/treelang/ChangeLog
gcc/treelang/lex.l
gcc/treelang/treelang.texi

index 36865e31e1f6832b8690ea7b88e522a755abe033..d017977a38bbdb44dda91b70996f8e38909c63f5 100644 (file)
@@ -1,5 +1,8 @@
 2003-12-04  James A. Morrison  <ja2morri@uwaterloo.ca>
 
+       * lex.l: Add \t as a whitespace character.
+       * treelang.texi (Lexical Syntax): Document a tab as whitespace.
+
        * treelang.texi (What is GNU Treelang?): Fix a typo.
        (Lexical Syntax): Create an itemize list of keywords.  Add commas to
        paragraph defining names.
index 364bf0208d499bf3218ea8f6ed556d668fe4c718..12b211e5b2fd75f0f97e20e54c2ec6ceaa9ab6ed 100644 (file)
@@ -78,7 +78,7 @@ static void dump_lex_value (int lexret);
    ((struct prod_token_parm_item *)yylval)->tp.tok.charno = next_tree_charno;
  }
 
-[ \n]+ {
+[ \n\t]+ {
   update_lineno_charno ();
     NOT_RETURN (WHITESPACE);
 }
index 77e520374ef14dc38cd18249499df9a3f8613960..501c4bfca953f8e3a264aa2912bedb11f733b9a4 100644 (file)
@@ -399,8 +399,8 @@ Treelang programs consist of whitespace, comments, keywords and names.
 @itemize @bullet
 
 @item
-Whitespace consists of the space character and the end of line
-character. Tabs are not allowed. Line terminations are as defined by the
+Whitespace consists of the space character, a tab, and the end of line
+character.  Line terminations are as defined by the
 standard C library. Whitespace is ignored except within comments,
 and where it separates parts of the program. In the example below, A and
 B are two separate names separated by whitespace.