473,788 Members | 2,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moving from -> to . for object operators?

Is there a way to change PHP's source and recompile so that I can use
"." instead of "->" for the object operator? Of course, I would also
change "." (the concat operator) to "&" or "+" for the concat
operator.

I think it's as simple as editing "zend_language_ scanner.l" from the
source, changing "." to "&", and "->" to ".", then recompiling, but I
haven't tested this. Has anyone done that before?
Jul 17 '05 #1
5 2018
Hi Google Mike!

On 20 Oct 2003 13:54:47 -0700, go********@hotp op.com (Google Mike)
wrote:
Is there a way to change PHP's source and recompile so that I can use
"." instead of "->" for the object operator? Of course, I would also
change "." (the concat operator) to "&" or "+" for the concat
operator.

I think it's as simple as editing "zend_language_ scanner.l" from the
source, changing "." to "&", and "->" to ".", then recompiling, but I
haven't tested this. Has anyone done that before?


Have you done that with any language before? Its all 1's and 0's in
the end, but I doubt it is that easy. What about the + and the &
operator. What about the ones you replace it with?

SCNR,

Jochen

--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #2
Jochen Daum <jo*********@ca ns.co.nz> wrote
Have you done that with any language before? Its all 1's and 0's in
the end, but I doubt it is that easy. What about the + and the &
operator. What about the ones you replace it with?


Nah. I think my suggested gameplan is the desired course. I'll attempt it.
Jul 17 '05 #3
"Google Mike" <go********@hot pop.com> wrote in message
news:25******** *************** ***@posting.goo gle.com...
I think it's as simple as editing "zend_language_ scanner.l" from the
source, changing "." to "&", and "->" to ".", then recompiling, but I
haven't tested this. Has anyone done that before?


What you suggest is equivalent of running sed (or any other search and
replace) over your source and and changing "." to "&".

While running sed would be much simpler than poking over the lex files,
neither would work properly. You would need to get up in your arms in mud of
scanner and parser to change things at least a bit meaningfully. And even
then I am not sure that the grammar you are proposing can be implemented
properly (for instance can you distinguish use of & as concat operator, and
use of & as reference operator?)

rush
--
http://www.templatetamer.com/

Jul 17 '05 #4
sk
Does the ability to run all the millions of lines of existing PHP code
bother you? Is this some way of forcing yourself to write all your own
libraries and programs to do everything?

While you're at it, maybe you should translate all the language keywords
into Mingrelian and build your own keyboard out of peanut shells and
bubblegum for writing Google Mike Mingrelian-Dotted-Notation PHP.

Google Mike wrote:
Is there a way to change PHP's source and recompile so that I can use
"." instead of "->" for the object operator? Of course, I would also
change "." (the concat operator) to "&" or "+" for the concat
operator.

I think it's as simple as editing "zend_language_ scanner.l" from the
source, changing "." to "&", and "->" to ".", then recompiling, but I
haven't tested this. Has anyone done that before?


Jul 17 '05 #5
On Tue, 21 Oct 2003 15:19:29 +0000, sk wrote:

<snip!>
While you're at it, maybe you should translate all the language keywords
into Mingrelian and build your own keyboard out of peanut shells and
bubblegum for writing Google Mike Mingrelian-Dotted-Notation PHP.

<snip!>

That made me laugh out loud! Thanks.
--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website | http://www.wse.jhu.edu/newtnotes/

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3036
by: Just Me | last post by:
If I move the mouse cursor over a control and stop moving I get a MouseHover event. If I then move the cursor while staying within the control and then stop moving I do not get another MouseHover event. To get a Mousehover I must leave and reenter the control. I'd like to get an event each time the cursor stops moving.
0
1458
by: linkswanted | last post by:
World Moving & Storage Moving Companies and Movers We would like to take this opportunity to introduce "World Moving & Storage" to You. "World Moving & Storage" is well established, Fully Licensed, Insured and Bonded. A Moving & Storage Company based in North Hollywood and San Francisco, California. Our services range from local to long distance and International moves throughout the United States. We offer Express Moves To All Major...
0
1218
by: linkswanted | last post by:
Moving Companies California http://www.movingcompanies.co.il california movers, los angeles movers, moving in california, moving to CA, Moving company los angeles, moving to los angeles.
0
1268
by: linkswanted | last post by:
Free Moving Estimate, Local Movers, Long Distance Moving, Packing Supplies, Storage Rental, Home Moving, Apartment Moving, Office Moving, Commercial Moving, Moving Companies in your area. http://www.worldmovingandstorage.com http://www.mover4u.com
0
1657
by: linkswanted | last post by:
http://www.movingcompanies.co.il/supplies/boxes.html http://www.movingcompanies.co.il/residental/ http://www.movingcompanies.co.il/commercial/corporate-moves.html http://www.movingcompanies.co.il/international/ http://www.movingcompanies.co.il/local-movers/ http://www.movingcompanies.co.il/company/coupons-and-discounts.html http://www.movingcompanies.co.il/commercial/heavy-equipment.html...
0
1854
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in the country. allows you to easily obtain no obligation moving quotes from local movers, long distance movers, international movers, auto transport, storage rentals and specialty movers. office movers, commercial moving, residential moving, movers...
0
1783
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in the country. allows you to easily obtain no obligation moving quotes from local movers, long distance movers, international movers, auto transport, storage rentals and specialty movers. office movers, commercial moving, residential moving, movers...
0
4641
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars (double) Sales Units (double) Promo (Text) -- is null or "X" AvgWklyDollars (double) AvgWklyUnits (double) I have a vba module which I thought would work, but it doesn't. I think the problem is an embedded SQL Totals Top 8 query, which doesn't...
15
2452
by: mcjason | last post by:
I saw something interesting about a grid pair puzzle problem that it looks like a machine when you find each that work out the way it does and say with all the others that work out the way they do together overlapping common pieces but say connected each working out as connected, but together as connected it's connected with the others connected. a whole machine where connected together is a condition of the machine together as...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.