Sha256: 1f321e7e2467cae9c4570f28db6e3f7a97b5a9c00808702122acb0760e348918

Contents?: true

Size: 1.3 KB

Versions: 6

Compression:

Stored size: 1.3 KB

Contents

1+2
1+2+3
4*5
4/2
5%3
1+2*3/5
(1+6)*5
1+(2*3)/(5-1)
1.3+5*(1+1.568)
xyz
1>2
x>=1
2<=b
4==1
2<x
{obj}
{obj: 1, 2, 3}
{obj: 1+2, x}
{obj: 1, 2}
{obj: x, 2, {other}}
{obj: 1} 
"teste"
'a'
if(x>1, "verdadeiro", "falso")
begin(1+2+3, "oi", 2<3, 'a')
sin(2*pi)-cos(2*pi)
f()
x = 1
x = 1+2+3+4
y = 1+2*x/2
str = "string"
p1 = point(1,2)
{obj: x} = {obj: 1}
{obj: x, t} = obj
[x|x]
[x,y| x+y]
[1, 2, x, {obj: x, y}| 1]
[x| y] : (y = [x| x+6])
[x| y] : (y = [x| x+6], z = [x| x-6], k=1)
x = [1]
fibonacci = [1| 1], [2| 1] , [n| fibonacci(n-1)+fibonacci(n-2)]
str_list = {list: 's', {list: 't', {list: 'r', {list: 'i', {list: 'n', {list: 'g', {list}}}}}}}
point = [x, y| {point: x, y}]
point_x = [{point: x, y}| x]
point_y = [{point: x, y}| y]
point_sum = [{point: x1, y1}, {point: x2, y2}| {point: x1+x2, y1+y2}]
sum = [ a, b| a + b]
f = [x| begin(algo=x, algo*algo, algo)]
f = [x| f(x) + g(x)] : (f = [x| x*x], g = [x| x/2])
f = [x| y] : (y = 2*x)
p->x
p->x(1)
p->x()
f(1)->algo(1)
x->algo()
10->algo(1,2,3)
{algo: 1, 2} -> algo()
{algo: x, y} -> x()
{point: x, y} -> x = [x|x]
{aaaa: x, y}->a = [x] : (x = 1)
{aaaa: x, y} -> algo = [x| y] : (y = [x| x+6])
{algo: x, y}->algo = [x| x]
{algo} -> algo = 1
true
false
x = true
if(true, "sim", "nao")
x and y
if(true and false, 1, 2)
if((x and y) or z, 1, 2)
not true
x = (x and y) or (not k)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
p-lang-0.1.1 test/test_parser_ok.txt
p-lang-0.1.0 test/test_parser_ok.txt
p-lang-0.0.4 test/test_parser_ok.txt
p-lang-0.0.3 test/test_parser_ok.txt
p-lang-0.0.2 test/test_parser_ok.txt
p-lang-0.0.1 test/test_parser_ok.txt