JavaScript Dependency Generator in PHP

Zamknięty Opublikowano Jul 13, 2010 Płatność przy odbiorze
Zamknięty Płatność przy odbiorze

We need a class with functions, or functions, written in PHP, that takes in a stringof valid JavaScript and performs some parsing on it, defined below:

? 1) We need a list of all named functions that the JS stringdefines. Please note that there is more than one way to define a function inJS, and you need to allow each syntax. It is also important, and should beclearly marked, which functions are defined in the global space and which aredefined within some other context.

examples:?

function A(someParam) {}

B = function() {}

B.prototype.C = function() {}

A, B are global functions, and C is a method ofB.

2) We need a list of general statements that the file hasthat are not themselves definitions of functions nor are used inside offunctions, but just general statements.

examples:

alert("hi!");

3) For every function, we need a list of what calls it canmake to other functions, in order to know dependencies. These other functionsmay or may not appear within the file - you simply need to parse the [url removed, login to view], it is relevant which functions are called globally and which arecalled as methods of an object. You do NOT, however, have to worry about thetype of the object, only whether or not it was global. Finally, note that thereis more than one way to call a function in JavaScript.

examples:

DoThis(blah, blah);

[url removed, login to view]();

new Something();

someObject.C();

DoThis, DoThat, Something are global calls, butC was called as a method.

Inżynieria PHP Zarządzanie projektem Instalowanie skryptów Shell Script Architektura oprogramowania Testowanie oprogramowania Usługi hostingowe Administracja serwisami WWW Testowanie serwisów WWW

Numer ID Projektu: #3570857

O projekcie

5 ofert Zdalny projekt Aktywny Aug 4, 2010

5 freelancerów złożyło ofertę za $179 w tym projekcie

fromberg100

See private message.

$127.5 USD w ciągu 14 dni
(38 Oceny)
5.5
watcher17

See private message.

$467.5 USD w ciągu 14 dni
(11 Oceny)
4.4
xgtsoftware

See private message.

$85 USD w ciągu 14 dni
(3 Oceny)
3.6
stdevguru

See private message.

$85 USD w ciągu 14 dni
(16 Oceny)
3.3
phpbound

See private message.

$127.5 USD w ciągu 14 dni
(0 Oceny)
0.0