Message from discussion
limit the number of characters in a string
Received: by 10.214.242.8 with SMTP id p8mr575025qah.28.1222184131960;
Tue, 23 Sep 2008 08:35:31 -0700 (PDT)
Return-Path: <iloncar.ml+caf_=il-antlr-interest=googlegroups....@gmail.com>
Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30])
by mx.google.com with ESMTP id 7si10838199yxg.0.2008.09.23.08.35.31;
Tue, 23 Sep 2008 08:35:31 -0700 (PDT)
Received-SPF: pass (google.com: domain of iloncar.ml+caf_=il-antlr-interest=googlegroups....@gmail.com designates 74.125.46.30 as permitted sender) client-ip=74.125.46.30;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of iloncar.ml+caf_=il-antlr-interest=googlegroups....@gmail.com designates 74.125.46.30 as permitted sender) smtp.mail=iloncar.ml+caf_=il-antlr-interest=googlegroups....@gmail.com
Received: by yw-out-2324.google.com with SMTP id 9so330255ywe.17
for <il-antlr-interest@googlegroups.com>; Tue, 23 Sep 2008 08:35:31 -0700 (PDT)
Received: by 10.142.90.13 with SMTP id n13mr2059076wfb.75.1222184131734;
Tue, 23 Sep 2008 08:35:31 -0700 (PDT)
X-Forwarded-To: il-antlr-interest@googlegroups.com
X-Forwarded-For: iloncar...@gmail.com il-antlr-interest@googlegroups.com
Delivered-To: iloncar...@gmail.com
Received: by 10.142.79.3 with SMTP id c3cs345299wfb;
Tue, 23 Sep 2008 08:35:31 -0700 (PDT)
Received: by 10.142.154.20 with SMTP id b20mr2057233wfe.99.1222184130752;
Tue, 23 Sep 2008 08:35:30 -0700 (PDT)
Return-Path: <antlr-interest-boun...@antlr.org>
Received: from www.antlr.org (www.antlr.org [138.202.170.10])
by mx.google.com with ESMTP id 27si9909820wfa.2.2008.09.23.08.35.11;
Tue, 23 Sep 2008 08:35:30 -0700 (PDT)
Received-SPF: pass (google.com: domain of antlr-interest-boun...@antlr.org designates 138.202.170.10 as permitted sender) client-ip=138.202.170.10;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of antlr-interest-boun...@antlr.org designates 138.202.170.10 as permitted sender) smtp.mail=antlr-interest-boun...@antlr.org
Received: from www.antlr.org (localhost.localdomain [127.0.0.1])
by www.antlr.org (Postfix) with ESMTP id 9F00ACE961;
Tue, 23 Sep 2008 08:35:04 -0700 (PDT)
X-Original-To: antlr-inter...@antlr.org
Delivered-To: antlr-inter...@antlr.org
Received: from ciao.gmane.org (main.gmane.org [80.91.229.2])
by www.antlr.org (Postfix) with ESMTP id 5DCAD3D146E
for <antlr-inter...@antlr.org>; Tue, 23 Sep 2008 08:35:03 -0700 (PDT)
Received: from root by ciao.gmane.org with local (Exim 4.43)
id 1Ki9uo-0002qz-82
for antlr-inter...@antlr.org; Tue, 23 Sep 2008 15:35:02 +0000
Received: from pal-176-230.itap.purdue.edu ([128.211.176.230])
by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
id 1AlnuQ-0007hv-00
for <antlr-inter...@antlr.org>; Tue, 23 Sep 2008 15:35:02 +0000
Received: from waqasjaved by pal-176-230.itap.purdue.edu with local (Gmexim
0.1 (Debian)) id 1AlnuQ-0007hv-00
for <antlr-inter...@antlr.org>; Tue, 23 Sep 2008 15:35:02 +0000
X-Injected-Via-Gmane: http://gmane.org/
To: antlr-inter...@antlr.org
From: waqas javed <waqasja...@gmail.com>
Date: Tue, 23 Sep 2008 15:30:26 +0000 (UTC)
Lines: 13
Message-ID: <loom.20080923T152715-...@post.gmane.org>
Mime-Version: 1.0
X-Complaints-To: use...@ger.gmane.org
X-Gmane-NNTP-Posting-Host: main.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 128.211.176.230 (Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506;
Media Center PC 5.0))
Subject: [antlr-interest] limit the number of characters in a string
X-BeenThere: antlr-inter...@antlr.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <antlr-interest.antlr.org>
List-Unsubscribe: <http://www.antlr.org:8080/mailman/listinfo/antlr-interest>,
<mailto:antlr-interest-requ...@antlr.org?subject=unsubscribe>
List-Archive: <http://www.antlr.org:8080/pipermail/antlr-interest>
List-Post: <mailto:antlr-inter...@antlr.org>
List-Help: <mailto:antlr-interest-requ...@antlr.org?subject=help>
List-Subscribe: <http://www.antlr.org:8080/mailman/listinfo/antlr-interest>,
<mailto:antlr-interest-requ...@antlr.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: antlr-interest-boun...@antlr.org
Errors-To: antlr-interest-boun...@antlr.org
Hi,
I am writing a parser in antlr. Can you tell me how I can limit the number
of characters in string. Actually I want to limit the max number of characters
for an identifier to 32.
I am using the comman ('a'..'z')+ but this dont put any restriction on the
max number of characters that can be there in an identifier.
regards,
waqas
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address