[Laszlo-dev] For Review: Change 20071217-dda-v Summary: More accurate parsing of varargs syntax.

Donald Anderson dda at ddanderson.com
Mon Dec 17 20:02:24 PST 2007


Change 20071217-dda-v by dda at freddie.local on 2007-12-17 22:56:41 EST
     in /Users/dda/laszlo/src/svn/openlaszlo/branches/devildog
     for http://svn.openlaszlo.org/openlaszlo/branches/devildog

Summary: More accurate parsing of varargs syntax.

New Features: none

Bugs Fixed: LPP-5273

Technical Reviewer: ptw (pending)
QA Reviewer: hminsky (pending)
Doc Reviewer: (pending)

Documentation: none

Release Notes: none

Details:
     This fixes the grammar to require that the '...rest' syntax,
     if it appears at all in a formal argument declaration, appears
     as the last argument.


Tests:
     Tried some simple tests like:
       function f1(x,...y) { }
       function f2(...x) { }
       function f3(...x,y) { }
     to verify that the first two pass and the last one fails.

Files:
M      WEB-INF/lps/server/sc/src/org/openlaszlo/sc/Parser.jjt

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071217-dda- 
v.tar



--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

Voice:  617-547-7881
Email:  dda at ddanderson.com
WWW:    http://www.ddanderson.com



More information about the Laszlo-dev mailing list