Operator 0.1.7 0.1.7 Apk

Operator 0.1.7 0.1.7 icon
By: - Website
Category: Education
Requires: Android 4.0.1 and up
Curent version: 0.1.7
Updated: 22.10.2019
Price: Free
Size: 0.14 Mb
Download: 268

Rate saved, Thank!

4 (1 votes)

Description of Operator 0.1.7

A simple Javascript transpiler program to code in a functional language looking like another famous functional programming language (beginning with an H.) Each translation can be integrated in your web page via a single javascript script, provided you also installed jqMath (http://mathscribe.com/author/jqmath.html) -- with jQuery -- and Numeric Javascript (http://www.numericjs.com). Like H., Operator * is functional * is little verbose * understands binary operation's infix notation Unlike H., Operator * is not lazy in essence but infinite structures (lists, trees...) can be implemented * is untyped * doesn't understand sections with binary operators (you have to (\x->x+1) if you want to (+1)) but understands sections otherwise * doesn't have a lower/upper cases distinction * doesn't assume any priority for binary operations * doesn't regard ' (simple quote) as a valid syntactic symbol * is at a very early stage Regarding purity, Operator works most of the time with immutable variables and structures but occasionnally (after the interact keyword) some states can be modified (content of an HTML document for example, see Demos). PRIMITIVE BUILT INS: Only +,-,*,/,%,==,<,>,substring,length are kept literally from javascript with the same meaning they have in javascript (+ is polymorphic for example). They are now regarded as functions of 2 arguments (except unary length and ternary substring). The get method has become the ! function Eg: var val=obj['black']+xs[0]; becomes val = (obj!"black")+(xs!0) A javascript Array is called a List in Operator Eg: var xs=[1,2]; becomes xs = List () 1 2 () A javascript Object is called a Map in Operator Eg: var obj={'red':0,'black':1}; becomes obj = Map () "red" 0 "black" 1 () These are designed to be immutable and, as functions, the following is valid: beg = List () 1 2 3 next = beg 4 5 xs = next 6 () , the last () giving the end of the structure (the first one creates an new instance). It would then be reckless to defined ys = next 7 () for the (impredictible) order in which xs and ys are processed would influence the result of xs!5 (which could give 6 or 7 accordingly). Instead, define a new immutable List: ys = List () 1 2 3 4 5 7 () Several useful document manipulation fonctions are available also: :=, ::=, newline, value, math, input, button, interact (see Demos) Several useful general fonctions are available also: hex2char, dec2hex, hex2dec The other javascript components can be accessed by the javascript keyword (see below). And thats'all for the primitive built-ins! FOREIGN BUILT-INS: Foreign JAVASCRIPT: Operator only knows a very small set of primitive keywords and operators but all the javascript functions can be accessed with the javascript keyword. Eg: sqrt x = javascript (("Math.sqrt("+x) + ")") or, better, sqrt = javascript "var fun=function(x){return Math.sqrt(x);};fun" or simply sqrt = javascript "Math.sqrt" Foreign JQMATH: If the result of a computation satisfies the jqMath format (http://mathscribe.com/author/jqmath.html), it will be displayed as a mathematical formula. For example main = "$355/113$" will display a nice fraction on the screen, and on your web page if you install the script (sent by the "Send javascript" menu) and the jqMath script. Foreign NUMERIC JAVASCRIPT: All the numericjs functions (http://www.numericjs.com) can be used. For example m=List () row1 row2 () row1=List () 2 5 () row2=List () 6 3 () determinant = javascript "numeric.det" main=determinant m will return -24. Note that there is no shortcut (as in sqrt above) for the definitions of the numeric functions of 2 or more variables. For example, with the first four lines above and main = determinant (product m m) you should define product = javascript "var fun=function(x){return function(y){return numeric.dot(x,y);};};fun" in order to get 576.

Read more...

Images

Share this App

Similar apps

Bridge Builder Crane Operator 1.0.5 Apk

Bridge Builder Crane Operator

Simulation
Kick Time Studios
41.35 Mb
Download Apk
Stone Crusher Crane Operator 1.0.1 Apk

Stone Crusher Crane Operator

Simulation
Kick Time Studios
44.06 Mb
Download Apk
Construction Crane Operator 3D 1.1 Apk

Construction Crane Operator 3D

Simulation
Game Unified
33.38 Mb
Download Apk
Tower Crane Operator Simulator 1.0.1 Apk

Tower Crane Operator Simulator

Simulation
Digital Toys Studio
39.41 Mb
Download Apk
Cargo Forklift Operator 3D 1.0.1 Apk

Cargo Forklift Operator 3D

Simulation
Digital Toys Studio
45.33 Mb
Download Apk
Landslide Excavator Operator 1.0 Apk

Landslide Excavator Operator

Simulation
3Dee Gaming Studio
32.25 Mb
Download Apk
Mountain Drill Crane Operator 1.0 Apk

Mountain Drill Crane Operator

Simulation
Wacky Studios -Parking, Racing & Talking 3D Games
27.71 Mb
Download Apk
Loader 3d: Excavator Operator 1.0 Apk

Loader 3d: Excavator Operator

Simulation
Wacky Studios -Parking, Racing & Talking 3D Games
39.46 Mb
Download Apk
Turkcell Digital Operator - Transaction & Shopping 15.1.2 Apk

Turkcell Digital Operator - Transaction & Shopping

Tools
Turkcell İletişim Hizmetleri A.Ş
64.49 Mb
Download Apk
Real Heavy Excavator Operator 1.2 Apk

Real Heavy Excavator Operator

Simulation
Black Arrow
23.93 Mb
Download Apk
Snow Excavator Crane Operator 2.0 Apk

Snow Excavator Crane Operator

Simulation
Digital Toys Studio
34.65 Mb
Download Apk
Mobilní operátor SAZKAmobil 2.0.8 Apk

Mobilní operátor SAZKAmobil

Tools
SAZKA a.s.
2.08 Mb
Download Apk
Cargo Crane Simulator:Operator 1.1 Apk

Cargo Crane Simulator:Operator

Simulation
Games Craft Studio 3D
28.82 Mb
Download Apk
Landslide Road Rescue Operator 1.4 Apk

Landslide Road Rescue Operator

Simulation
Game Time Studio
29.4 Mb
Download Apk
Trane BAS Operator 2.8.397 Apk

Trane BAS Operator

Business
Trane
20.9 Mb
Download Apk
About Privacy Policy Feedback Report a policy violation