public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: cagney@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Tidy TAB lexer. Date: Fri, 16 Nov 2007 00:28:00 -0000 [thread overview] Message-ID: <20071116002841.2618.qmail@sourceware.org> (raw) The branch, master has been updated via 59fba07fbfacb30f9ae2323677c5ae20b5a14eaf (commit) from d446c71317b65455e9baf4f4b321680170e6b847 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 59fba07fbfacb30f9ae2323677c5ae20b5a14eaf Author: Andrew Cagney <cagney@redhat.com> Date: Thu Nov 15 19:12:57 2007 -0500 Tidy TAB lexer. frysk-core/frysk/expr/ChangeLog 2007-11-15 Andrew Cagney <cagney@redhat.com> * CExpr.g (tid_expression): Delete. (TAB_IDENT): Fold into TAB. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/expr/CExpr.g | 27 +++++++++------------------ frysk-core/frysk/expr/ChangeLog | 3 +++ 2 files changed, 12 insertions(+), 18 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/expr/CExpr.g b/frysk-core/frysk/expr/CExpr.g index 8d7b373..45f0a05 100644 --- a/frysk-core/frysk/expr/CExpr.g +++ b/frysk-core/frysk/expr/CExpr.g @@ -425,13 +425,9 @@ constant { astPostExpr = #(#[MEMBER, "Member"], #astPostExpr, #id_expr1); } )*/ -tid_expression - : TAB_IDENT - ; - -/*---------------------------------------------------------------------------- - * The Lexer - *----------------------------------------------------------------------------*/ +/*--------------------------------------------------------------------------- + * The Lexer + *---------------------------------------------------------------------------*/ class CExprLexer extends Lexer; @@ -506,18 +502,13 @@ options {testLiterals = true;} ; /** - * A <TAB> token is returned not only on regular tabs - * but also when a TAB is hit after an incomplete variable - */ -protected -TAB - : (IDENT)?'\t' - ; + * A <TAB> token is returned not only on regular tabs + * but also when a TAB is hit after an incomplete identifier. + */ -TAB_IDENT - : ((IDENT)'\t')=>TAB {$setType(TAB);} - | ('\t')=>TAB {$setType(TAB);} - | IDENT {$setType(IDENT);} +TAB + : '\t' + | IDENT {$setType(IDENT);} ('\t' {$setType(TAB);})? ; protected diff --git a/frysk-core/frysk/expr/ChangeLog b/frysk-core/frysk/expr/ChangeLog index 8dc8423..8ec1bb0 100644 --- a/frysk-core/frysk/expr/ChangeLog +++ b/frysk-core/frysk/expr/ChangeLog @@ -4,6 +4,9 @@ 2007-11-15 Andrew Cagney <cagney@redhat.com> + * CExpr.g (tid_expression): Delete. + (TAB_IDENT): Fold into TAB. + * CExpr.g (options): Delete ASTLabelType. * CExprEvaluator.g (options): Ditto. * ExprAST.java: Delete. hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2007-11-16 0:28 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20071116002841.2618.qmail@sourceware.org \ --to=cagney@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).