- Write WebGL shaders in JavaScript (shader classes)
- Compile shader classes to GLSL at runtime or compile time
- Assemble and run
glProgram
(material) seamlessly in JavaScript syntax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a semi-quantum fulladder. It adds to b_in | |
// a c-number. Carry-in bit is c_in and carry_out is | |
// c_out. xlt-l and L are enablebits. See documentation | |
// for further information | |
proc muxfa a, b_in, c_in, c_out, xlt_l, L, total //a, | |
if a == 0//00 | |
Toffoli b_in, c_in, c_out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="<%= post.path %>#comments"><span class="ds-thread-count" data-thread-key="<%= post.path %>" data-count-type="comments">没有评论</span></a> |
The Bright Star Catalogue, 5th Revised Ed. (Preliminary Version)
Hoffleit D., Warren Jr W.H.
<Astronomical Data Center, NSSDC/ADC (1991)>
An Irony grammar class is a C# class derived from Irony.Parsing.Grammar
that defines the grammar for a language.
The overall structure can be easily done by templating so it is not worth not worth discussing. We will concentrate on the actual work that is performed in its constructor:
- Decalare and initialize variables for terminals
- Decalare and initialize variables for non-terminals
- Defines rules