From owner-freebsd-questions@FreeBSD.ORG Mon Jun 29 02:51:29 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E296D106566C for ; Mon, 29 Jun 2009 02:51:29 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id 8E54A8FC12 for ; Mon, 29 Jun 2009 02:51:29 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by qw-out-2122.google.com with SMTP id 5so563801qwd.7 for ; Sun, 28 Jun 2009 19:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=44HmECi+jsSoUmCcwaFuHaQux90/XY/6kkkIWoznFzk=; b=TtoNQj/RfUPGv9wUMHlQGplNttVdBsaoPpO/VU8dHsoslG9HGF7/PxSFHnsYexfkaC h+F7pCg7hdEi/iKiI426f8itEKVo6ti2GuVQt1jsboqie2mI6OcJ5d7yV8hVCnTn3TMl SgZm8ycdDYyghYMRbAVgds7IpV8PNUp5Hdfj8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=jmNG49sSUBftRysnoMwYAAJ2Vh/caFkfTELvvgcEP6pFqYkvVtfijgUsMbrUl19Ws7 rGfU42nz3IN+VFtCQSjcUqM3qEFVxlnU9MS7sbNytTcncse3cLiFJzdeJbdJZxO1crDU ymURqGMVrSX+Uf3+P0xg2mxQmtxpTIryJqJ/A= Received: by 10.224.11.136 with SMTP id t8mr5161334qat.308.1246243888681; Sun, 28 Jun 2009 19:51:28 -0700 (PDT) Received: from aryeh-desktop.istudentunion.com (ool-44c0cd7a.dyn.optonline.net [68.192.205.122]) by mx.google.com with ESMTPS id 2sm12628553qwi.23.2009.06.28.19.51.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Jun 2009 19:51:28 -0700 (PDT) Message-ID: <4A482C31.6070600@gmail.com> Date: Sun, 28 Jun 2009 22:51:29 -0400 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.22 (X11/20090626) MIME-Version: 1.0 To: Glen Barber References: <4A48252C.1090808@gmail.com> <4ad871310906281926i54fdac53u1d4681c8060e4d36@mail.gmail.com> <4A4826A5.6020506@gmail.com> <4ad871310906281930k644b5d5fnf448decf8e489c4c@mail.gmail.com> <4ad871310906281946g7ed9c1d6m477fd3dfecc8d330@mail.gmail.com> In-Reply-To: <4ad871310906281946g7ed9c1d6m477fd3dfecc8d330@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Vince Sabio , freebsd-questions@freebsd.org Subject: Re: what character is a physical newline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 02:51:30 -0000 Just incase you guys are curious the reason for doing the parser from scratch is it is designed to lex/parse families of languages not just a single lang for example (there is very large overlap between c/c++/java/c#/etc. as there is in the tag langs like XML/HTML)... also generators produce unreadable code (and impossible to hand modify if you're not quite happy with the generated code) thus I refer to the design as a heiractical recursive decent parser (i.e. it lexs/parses the commonalties of a family [or set of families {all ascii vs, unicode langs for example are a set of families} before it attempts to handle the actual lang [or family in the case of set of families]).