Skip to content

Commit 476b2c8

Browse files
committed
Fixing some typos
1 parent b153235 commit 476b2c8

29 files changed

+41
-41
lines changed

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ the above requirements apply either way.
406406

407407
8. Termination.
408408

409-
You may not propagate or modify a covered work except as instressly
409+
You may not propagate or modify a covered work except as expressly
410410
provided under this License. Any attempt otherwise to propagate or
411411
modify it is void, and will automatically terminate your rights under
412412
this License (including any patent licenses granted under the third
@@ -489,9 +489,9 @@ patent license under the contributor's essential patent claims, to
489489
make, use, sell, offer for sale, import and otherwise run, modify and
490490
propagate the contents of its contributor version.
491491

492-
In the following three paragraphs, a "patent license" is any instress
492+
In the following three paragraphs, a "patent license" is any express
493493
agreement or commitment, however denominated, not to enforce a patent
494-
(such as an instress permission to practice a patent or covenant not to
494+
(such as an express permission to practice a patent or covenant not to
495495
sue for patent infringement). To "grant" such a patent license to a
496496
party means to make such an agreement or commitment not to enforce a
497497
patent against the party.

TODO.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
- [x] Code refactoring for the return methods inside the recursivity.
1010
- [x] Code refactoring for the whole project. Improve readability (CodeGen params too).
1111
- [x] Create verbose mode describe on https://github.com/luizperes/brain/issues/2
12-
- [x] Fix InputInstression
12+
- [x] Fix InputInstruction
1313
- [x] Implement optimization for empty whiles `[ ]`. Ignore them (For Else too).
14-
- [x] Implement optimization for empty moves `ShiftInstr(0)` and `IncrementInstression(0)`.
14+
- [x] Implement optimization for empty moves `ShiftInstr(0)` and `IncrementInstruction(0)`.
1515
- [x] Implement a `delete comments` option for the compiler.
1616
- [x] Implement a `generate optimized code` option for the compiler.
1717
- [x] Improve the `return` at the method `Parser::isSkippable`. Check switch at the parser.
@@ -34,5 +34,5 @@
3434

3535
- [x] Utils
3636
- [x] Parser
37-
- [x] Instressions
37+
- [x] Instructions
3838
- [x] AST

docs/html/_break_expr_8h_source.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@
107107
<div class="title">BreakInstr.h</div> </div>
108108
</div><!--header-->
109109
<div class="contents">
110-
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* This is the source code of Brain Programming Language.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * It is licensed under GNU GPL v. 3 or later.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * You should have received a copy of the license in this archive (see LICENSE).</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Copyright Brain, 2016.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#ifndef BREAK_EXPR_H</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define BREAK_EXPR_H</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;llvm/Transforms/Utils/BuildLibCalls.h&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;llvm/IR/IRBuilder.h&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;llvm/IR/Module.h&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &quot;Instr.h&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_break_instr.html"> 22</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_break_instr.html">BreakInstr</a> : <span class="keyword">public</span> <a class="code" href="class_instr.html">Instr</a></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;{</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <a class="code" href="class_break_instr.html">BreakInstr</a>() {}</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; ~<a class="code" href="class_break_instr.html">BreakInstr</a>() {}</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_break_instr.html#a91931544f34167d6432441df6ddc1ab2">code_gen</a>(llvm::Module *M, llvm::IRBuilder&lt;&gt; &amp;B,</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; llvm::BasicBlock *BreakBB);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_break_instr.html#ac4051bc78b8cb47269aac534be96c1ce">debug_description</a>(<span class="keywordtype">int</span> level);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_break_instr.html#a5dc5fa9e44e3eb2df50fef1438186036">ast_code_gen</a>();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; InstressionType <a class="code" href="class_break_instr.html#a23af53a7e306232df2cfe661ab685911">instruction_category</a>();</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;};</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#endif // BREAK_EXPR_H</span></div><div class="ttc" id="class_instr_html"><div class="ttname"><a href="class_instr.html">Instr</a></div><div class="ttdoc">Abstract class in which all instructions in Brain implement from. </div><div class="ttdef"><b>Definition:</b> Instr.h:62</div></div>
110+
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* This is the source code of Brain Programming Language.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * It is licensed under GNU GPL v. 3 or later.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * You should have received a copy of the license in this archive (see LICENSE).</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Copyright Brain, 2016.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#ifndef BREAK_EXPR_H</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define BREAK_EXPR_H</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;llvm/Transforms/Utils/BuildLibCalls.h&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;llvm/IR/IRBuilder.h&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;llvm/IR/Module.h&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &quot;Instr.h&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_break_instr.html"> 22</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_break_instr.html">BreakInstr</a> : <span class="keyword">public</span> <a class="code" href="class_instr.html">Instr</a></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;{</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <a class="code" href="class_break_instr.html">BreakInstr</a>() {}</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; ~<a class="code" href="class_break_instr.html">BreakInstr</a>() {}</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_break_instr.html#a91931544f34167d6432441df6ddc1ab2">code_gen</a>(llvm::Module *M, llvm::IRBuilder&lt;&gt; &amp;B,</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; llvm::BasicBlock *BreakBB);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_break_instr.html#ac4051bc78b8cb47269aac534be96c1ce">debug_description</a>(<span class="keywordtype">int</span> level);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_break_instr.html#a5dc5fa9e44e3eb2df50fef1438186036">ast_code_gen</a>();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; InstructionType <a class="code" href="class_break_instr.html#a23af53a7e306232df2cfe661ab685911">instruction_category</a>();</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;};</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#endif // BREAK_EXPR_H</span></div><div class="ttc" id="class_instr_html"><div class="ttname"><a href="class_instr.html">Instr</a></div><div class="ttdoc">Abstract class in which all instructions in Brain implement from. </div><div class="ttdef"><b>Definition:</b> Instr.h:62</div></div>
111111
<div class="ttc" id="class_break_instr_html"><div class="ttname"><a href="class_break_instr.html">BreakInstr</a></div><div class="ttdoc">Class that represents the break operator in Brain. </div><div class="ttdef"><b>Definition:</b> BreakInstr.h:22</div></div>
112112
<div class="ttc" id="class_break_instr_html_a91931544f34167d6432441df6ddc1ab2"><div class="ttname"><a href="class_break_instr.html#a91931544f34167d6432441df6ddc1ab2">BreakInstr::code_gen</a></div><div class="ttdeci">void code_gen(llvm::Module *M, llvm::IRBuilder&lt;&gt; &amp;B, llvm::BasicBlock *BreakBB)</div><div class="ttdoc">Generates the IR (Intermediate Representation) code to be executed by llvm. </div><div class="ttdef"><b>Definition:</b> BreakInstr.cpp:10</div></div>
113113
<div class="ttc" id="class_break_instr_html_ac4051bc78b8cb47269aac534be96c1ce"><div class="ttname"><a href="class_break_instr.html#ac4051bc78b8cb47269aac534be96c1ce">BreakInstr::debug_description</a></div><div class="ttdeci">void debug_description(int level)</div><div class="ttdoc">Prints debug information when Brain&amp;#39;s compiler has the active flags: -v | -emit-ast. </div><div class="ttdef"><b>Definition:</b> BreakInstr.cpp:18</div></div>
114-
<div class="ttc" id="class_break_instr_html_a23af53a7e306232df2cfe661ab685911"><div class="ttname"><a href="class_break_instr.html#a23af53a7e306232df2cfe661ab685911">BreakInstr::instruction_category</a></div><div class="ttdeci">InstressionType instruction_category()</div><div class="ttdoc">Returns the category of the instruction given by the caller. </div><div class="ttdef"><b>Definition:</b> BreakInstr.cpp:35</div></div>
114+
<div class="ttc" id="class_break_instr_html_a23af53a7e306232df2cfe661ab685911"><div class="ttname"><a href="class_break_instr.html#a23af53a7e306232df2cfe661ab685911">BreakInstr::instruction_category</a></div><div class="ttdeci">InstructionType instruction_category()</div><div class="ttdoc">Returns the category of the instruction given by the caller. </div><div class="ttdef"><b>Definition:</b> BreakInstr.cpp:35</div></div>
115115
<div class="ttc" id="class_break_instr_html_a5dc5fa9e44e3eb2df50fef1438186036"><div class="ttname"><a href="class_break_instr.html#a5dc5fa9e44e3eb2df50fef1438186036">BreakInstr::ast_code_gen</a></div><div class="ttdeci">void ast_code_gen()</div><div class="ttdoc">Method for the reverse code generation from the AST. It prints out to the stdout the token itself...</div><div class="ttdef"><b>Definition:</b> BreakInstr.cpp:30</div></div>
116116
</div><!-- fragment --></div><!-- contents -->
117117
</div><!-- doc-content -->

0 commit comments

Comments
 (0)