User:CRGreathouse: Difference between revisions

Content added Content deleted
(→‎GeSHi tester: more operators)
Line 41: Line 41:
Default keywords and types are highlighted outside their proper context, though this is probably not a big deal.
Default keywords and types are highlighted outside their proper context, though this is probably not a big deal.


<lang parigp>fibonacci(9) /* Is it working at all? */
<lang parigp>x:real -> x^2
x->x^2 /* lambdas */
a += b <<= c >>= d -= e *= f /= g \= h \/= i %= j
ellheegner(ellinit([0, -1, 1, -33, 93])) \\ Do the 2.6.x functions work?
ellheegner(ellinit([0, -1, 1, -33, 93])) \\ Do the 2.6.x functions work?
myFunc(x:real, y:mp, z:int)=[x,y,z]; \\ gp2c types, including one that conflicts with a function
myFunc(x:real, y:mp, z:int)=[x,y,z]; \\ gp2c types, including one that conflicts with a function
Line 56: Line 58:
100\9\/3 \/ 1 \\ what about without spaces, or the unusual \/ operator?
100\9\/3 \/ 1 \\ what about without spaces, or the unusual \/ operator?
n=[1,2][9^9%2+1] \\ other operators
n=[1,2][9^9%2+1] \\ other operators
(a && b) || (c && d);
(a && b) || (c && d) == e++ === f-- != g;
for(i=1,9,variable_with_underscore);
for(i=1,9,variable_with_underscore);
Mod(3,9).mod \\ member function
Mod(3,9).mod \\ member function