-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
zephir.scroll
137 lines (111 loc) · 2.34 KB
/
zephir.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import ../code/conceptPage.scroll
id zephir
name Zephir
appeared 2013
creators Andres Gutierrez
tags pl
website https://zephir-lang.com/
latestVersion 0.17.0
isOpenSource true
writtenIn php c json bourne-shell yaml markdown m4 xml dockerfile javascript bash css make lisp
fileType text
documentation https://docs.zephir-lang.com/0.12/en/welcome
centralPackageRepositoryCount 0
repoStats
firstCommit 2013
commits 6144
committers 146
files 1454
newestCommit 2024
pygmentsHighlighter Zephir
filename php.py
fileExtensions zep
twitter https://twitter.com/zephirlang
githubRepo https://github.com/phalcon/zephir
firstCommit 2013
stars 3128
forks 470
subscribers 206
created 2013
updated 2022
description Zephir is a compiled high level language aimed to the creation of C-extensions for PHP.
issues 94
lineCommentToken //
multiLineCommentTokens /* */
hasLineComments true
// A comment
hasComments true
// A comment
hasMultiLineComments true
/* A comment
*/
hasSemanticIndentation false
hasHexadecimals true
// 0x[0-9a-fA-F]+
hasFloats true
// [0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?
hasIntegers true
// [0-9]+
domainName zephir-lang.com
registered 2013
awisRank
2022 3671741
githubBigQuery Zephir
repos 140
users 127
linguistGrammarRepo https://github.com/phalcon/zephir-sublime
firstCommit 2013
lastCommit 2017
committerCount 13
commitCount 37
sampleCount 2
example
/**
* CBLOCK tests
* asfas
*/
%{
// top statement before namespace, add to after headers
#define MAX_FACTOR 40
}%
namespace Test;
%{
// top statement before class, add to after headers
// test include .h
#include "kernel/require.h"
}%
%{
// c implement fibonacci
static long fibonacci(long n) {
if (n < 2) return n;
else return fibonacci(n - 2) + fibonacci(n - 1);
}
}%
class Cblock
{
public function testCblock1()
{
int a = 0;
%{
a = MAX_FACTOR;
}%
return a;
}
public function testCblock2()
{
long a = 0;
%{
a = fibonacci(MAX_FACTOR);
}%
return a;
}
}
isbndb 0
githubLanguage Zephir
fileExtensions zep
trendingProjectsCount 0
type programming
aceMode php
tmScope source.php.zephir
repos 91
semanticScholar 0