Jump to content

User:CRGreathouse: Difference between revisions

GeSHi tester
(my tasks)
(GeSHi tester)
Line 35:
* [[Literals/Floating point]]
* [[Rosetta Code/Find bare lang tags]]
 
==GeSHi tester==
<lang parigp>fibonacci(9) \\ Is it working at all?
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
whatType(x)=if(type(x)=="t_INT", "integer", "something else") \\ GP types
default(realprecision, 29); \\ defaults
default(simplify, 1) \\ default that conflicts with a function
trap(gdiver, "tried to divide by 0", 1/0) \\ error type
"this is a string with embedded \"quotes\""
100 \ 9 *4 / 3 + 1 - 2 \\ are operators highlighted equally, even integer division?
100\9\/3 \/ 1 \\ what about without spaces, or the unusual \/ operator?
n=[1,2][9^9%2+1] \\ other operators
(a && b) || (c && d);
for(i=1,9,);</lang>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.