User:CRGreathouse: Difference between revisions

From Rosetta Code
Content added Content deleted
(my tasks)
(GeSHi tester)
Line 35: Line 35:
* [[Literals/Floating point]]
* [[Literals/Floating point]]
* [[Rosetta Code/Find bare lang tags]]
* [[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>

Revision as of 06:41, 11 July 2011

My Favorite Languages
Language Proficiency
BASIC out of practice
C advanced
C++ out of practice
C# advanced
Forth beginner
Java out of practice
JavaScript advanced
LabVIEW beginner
LaTeX advanced
Mathematica beginner
MATLAB out of practice
MySQL intemediate
PARI/GP advanced
Perl intermediate
PHP beginner
Scheme beginner
UNIX Shell intermediate
VBScript out of practice
Visual Basic out of practice

My tasks

I occasionally create tasks, usually with some reference implementation in a reasonably-common language like C, Perl, or JavaScript.

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>