Skip to content

Commit 8acb51f

Browse files
committed
update
1 parent 7ecd4c4 commit 8acb51f

File tree

1 file changed

+56
-29
lines changed

1 file changed

+56
-29
lines changed

index.html

Lines changed: 56 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,72 @@
1919
<a id="forkme_banner" href="https://github.com/suncore">View on GitHub</a>
2020

2121
<h1 id="project_title">Cero Programming Language</h1>
22-
<h2 id="project_tagline"></h2>
22+
<h2 id="project_tagline">C++ uncluttered</h2>
2323

2424
</header>
2525
</div>
2626

2727
<!-- MAIN CONTENT -->
2828
<div id="main_content_wrap" class="outer">
2929
<section id="main_content" class="inner">
30-
<h3>
31-
<a name="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages"><span class="octicon octicon-link"></span></a>Welcome to GitHub Pages.</h3>
3230

33-
<p>Hello world 2. This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:</p>
34-
35-
<pre><code>$ cd your_repo_root/repo_name
36-
$ git fetch origin
37-
$ git checkout gh-pages
31+
<h3>The Cero Programming Language</h3>
32+
33+
<p>
34+
Cero is a slightly modified variant of C++. It compiles cero files into C++ and then builds using the C++ compiler.
35+
</p>
36+
37+
<p>
38+
Cero is fully compatible with C/C++ code.
39+
</p>
40+
41+
<p>
42+
Cero requires a C++11 compiler (or later). Currently it works only on Linux.
43+
</p>
44+
45+
<p>
46+
Cero has the following modifications compared to C++:
47+
</p>
48+
49+
<ul>
50+
<li>No semicolons</li>
51+
<li>No curly braces</li>
52+
<li>No parentheses after for, while, if, switch</li>
53+
<li>Simplified for loops (for i = 0..5)</li>
54+
<li>No header files </li>
55+
<li>No forward declarations</li>
56+
<li>Variable creation simplfied: "auto i = 0" can be written as "i := 0"</li>
57+
<li>Simplified build system. Makefiles are not needed.</li>
58+
</ul>
59+
60+
<h3>Example</h3>
61+
<p>File myprint.ce:</p>
62+
<pre><code>+++ public
63+
+decl
64+
+++ private
65+
#include <iostream>
66+
+void myprint(string s)
67+
std::cout << s
68+
</code></pre>
69+
<p>File main.ce:</p>
70+
<pre><code>+++ private
71+
import myprint
72+
-decl
73+
int main(int argc, char *argv[])
74+
s := hello()
75+
for i := 0..5
76+
myprint(s)
77+
78+
-string hello()
79+
return "Hello World"
80+
</code></pre>
81+
<p>Building:</p>
82+
<pre><code>$ cero b main.ce
3883
</code></pre>
3984

40-
<p>If you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.</p>
41-
42-
<h3>
43-
<a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>Designer Templates</h3>
44-
45-
<p>We've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.</p>
46-
47-
<h3>
48-
<a name="rather-drive-stick" class="anchor" href="#rather-drive-stick"><span class="octicon octicon-link"></span></a>Rather Drive Stick?</h3>
49-
50-
<p>If you prefer to not use the automatic generator, push a branch named <code>gh-pages</code> to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.</p>
51-
52-
<h3>
53-
<a name="authors-and-contributors" class="anchor" href="#authors-and-contributors"><span class="octicon octicon-link"></span></a>Authors and Contributors</h3>
54-
55-
<p>You can <a href="https://github.com/blog/821" class="user-mention">@mention</a> a GitHub username to generate a link to their profile. The resulting <code>&lt;a&gt;</code> element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (<a href="https://github.com/defunkt" class="user-mention">@defunkt</a>), PJ Hyett (<a href="https://github.com/pjhyett" class="user-mention">@pjhyett</a>), and Tom Preston-Werner (<a href="https://github.com/mojombo" class="user-mention">@mojombo</a>) founded GitHub.</p>
56-
57-
<h3>
58-
<a name="support-or-contact" class="anchor" href="#support-or-contact"><span class="octicon octicon-link"></span></a>Support or Contact</h3>
59-
60-
<p>Having trouble with Pages? Check out the documentation at <a href="http://help.github.com/pages">http://help.github.com/pages</a> or contact <a href="mailto:support@github.com">support@github.com</a> and we’ll help you sort it out.</p>
85+
<p>
86+
The cero compiler is licensed under the BSD license.
87+
</p>
6188
</section>
6289
</div>
6390

0 commit comments

Comments
 (0)