473,785 Members | 2,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Php and theory of languages

Dear All,

I'm writing to this list since am looking for a cooperation.
I'm working about the development of a mathematical theory of languages.
It defines a language as a set of elements which can be combined or
associated (see the PS for an example).
I'd like to cooperate with a computer scientist in order to define a Php
package useful to create and to analyse a catalog of mathematical languages.
This package should be placed in the public domain, freely accessible to
anyone who might be interested.
In the continuation of the message I send a sample function to include
in the package, useful to understand the difficulty and the commitment.
Please accept my sincere apologies for the trouble.
This is not a spam message or an activity with commercial or profit
purposes.
I hope someone can be interested.
Please feel free to contact me for any question.
Really many thanks.

All the best,
Nico Sica
http://www.polimetrica.com/polimetri...ndomenico.html

PS
An example: consider the so-called computer language. To generate the
multiple programming languages, people started from combinations of
01010101, then have associated some of these combinations to commands in
natural language (e.g. PRINT, GO TO etc.), then they have combined these
new commands each other; then they have created new commands and
associated these new commands to the old ones and so on...repeating the
game.
This is a basic example of the simple theoretical mechanism.

FUNCTION 1
create_catalog_ languages(n)

Description.
This function should create a txt file including a catalog of languages
with up to n elements.

Possible methodology.
I explain it through an example which aims to define a catalog of all
the languages with up to 3 elements.
At the beginning, we have an empty catalog.
So we take an element "a" and an element "b".
We've a couple "a", "b" and three possible options:
1) "a" is combined to "b"
2) "a" is associated to "b"
3) "a" is combined to "b" and "a" is associated to "b"
From these 3 options we can construct in our txt file 3 languages:
L1
Elements: a,b
Combinations: (a,b)
Associations: nothing
L2
Elements: a,b
Combinations: nothing
Associations: (a,b)
L3
Elements: a,b
Combinations: (a,b)
Associations: (a,b)
Now we've a catalog of languages with up to 2 elements.
To develop our catalog, we take the first language (L1) and an element "c".
We've two possible new couples: "a","c" and "b","c".
For each couple we've the previous three options:
"a","c":
1) "a" is combined to "c"
2) "a" is associated to "c"
3) "a" is combined to "c" and "a" is associated to "c"
"b","c":
1) "b" is combined to "c"
2) "b" is associated to "c"
3) "b" is combined to "c" and "b" is associated to "c"
From these 3+3 options we can construct 15 languages:
3 languages from the first 3 options.
3 languages from the second 3 options.
9 languages from the combination of the two different set of options
(taking one option from each set):
1,1; 1,2; 1,3; 2,1; 2,2; 2,3; 3,1; 3,2; 3,3.
I don't write here the list of 15 languages since it should be quite
intuitive.
Now we've to proceed in the same way also for L2 and L3 and then we've
completed our catalog of all the languages with up to 3 elements.
If we want to create a catalog of all the languages with up to n
elements, we've to iterate the same procedure.
Jul 23 '06 #1
0 1193

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

Similar topics

1
2541
by: Xah Lee | last post by:
Dear functional programing comrades, Among the community of automatons of the IT industry, there is a popular quote about "theory vs practice" that goes something along the lines of "in theory this, but in practice that", which is often quoted by automatons to slight at computer science principles or practice. (especially by perl or unix advocates) i'm posting the following in hope that "theory vs practice" can cease its misleading...
10
2308
by: da Vinci | last post by:
Hello. First off, I am not sure of the exact jargon used, so I will ask a question regarding it. Then on to my other question. When you use things like cout and cin from the iostream header file, what are those called? Is cout and cin functions? What is the proper term for them a command listed in a header file? Or is it just a "command"?
2
2292
by: Jukka K. Korpela | last post by:
This question is fairly theoretical (even for me), but it started to puzzle me: According to the SGML declaration for HTML 4.01, at http://www.w3.org/TR/REC-html40/sgml/sgmldecl.html#h-20.1 the Form Feed character, U+000C (12 in decimal), is UNUSED, i.e. forbidden: DESCSET 0 9 UNUSED 9 2 9 11 2 UNUSED
2
1573
by: xeyder | last post by:
Hi everyone.. I need help about graph theory ( network problems) .. I have below problem . Does anyone know any existence algorithms or solutions to this problem ?? The Problems is: " We can use graphs to represent a communication network. In such graphs, the vertices
8
1740
by: Amelyan | last post by:
I need some help to confirm my theory! I think I discovered something new for myself about behavior System.Web.UI.Page. THEORY: Every time I change control on my WebForm1 page that results in PostBack, it is handled by a new instance of WebForm1 class, i.e. a new instance of WebForm1 class is created every time. In general, any GET or POST to WebForm1 will get its own new instance of WebForm1. public class WebForm1 :...
4
1490
by: Bob | last post by:
I know this is a tall order, but I'm looking for a book that talks about the implications of alternative approaches to languages than we typically see, such as allowing multiple inheritance... detailed, but not so heavy that the interesting, qualitative conclusions are left to the reader to dig out of a set of equations. Any recommendations? Bob
3
2239
by: Mayra | last post by:
hi, can anyone give me some info on the caracteristics of object relational databases and their advantages as well as disdvantages! thanx in advance.
25
1673
by: John Nagle | last post by:
Some faster Python implementations are under development. JPython has been around for a while, and PyPy and ShedSkin continue to move forward. It's worth thinking about what slows down Python implementations. It isn't the dynamism, really. As others have pointed out in the Python literature, most of the time, the more elaborate dynamic features aren't being used for any given variable or object. If code has something like "x = 1.0",...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10356
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
9959
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
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5396
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
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4061
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
2893
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.