構想にて、キーワード ref は関数を参照するために用いると記述しました。Luryでは、引数のない関数を括弧なしで呼び出せます。
def func:
return 1
| #include "mbed.h" | |
| #include "stdint.h" | |
| PwmOut out_phm(D3); | |
| DigitalOut d0(D15), d1(D14), d2(D13), d3(D12), d4(D11), d5(D10), d6(D9); | |
| DigitalInOut d7(D8); | |
| DigitalOut a0(D4), cs(D2), wr(D5), rd(D7), ic(D6); | |
| Serial pc(SERIAL_TX, SERIAL_RX); | |
| void wait_cycle(int cycle) { |
| /* [Lury] */ | |
| @public static | |
| <BuiltIn> | |
| class Assert: | |
| ### ** Caution ** | |
| ### On this class, _DO NOT USE_ assert and enforce function in each functions. | |
| @public static |
| // mes0〜mes5 は文字列。配列として用意している | |
| // 文字コードはUTF-8 (Windowsだと文字化けするかも) | |
| char mes0[] = { 0xe8, 0xa8, 0x88, 0xe7, 0xae, 0x97, 0, 0, 0, 0, 0, 0 , 0}, | |
| mes1[] = { 0, 0, 0, 0, 0, 0, 0xe5, 0x9b, 0x9e, 0xe6, 0x95, 0xb0, 0xe3, 0x82, 0x92, 0xe5, 0x85, 0xa5, 0xe5, 0x8a, 0x9b, 0x3a, 0x20, 0, 0, 0, 0 } , | |
| mes2[] = { 0x25, 0x6c, 0x6c, 0x64, 0 }, | |
| mes3[] = { 0, 0, 0, 0, 0, 0, 0xe4, 0xb8, 0xad, 0x2e, 0x2e, 0x2e, 0x28, 0x25, 0x36, 0x2e, 0x32, 0x66, 0x25, 0x25, 0x29, 0x20, 0, 0, 0, 0, 0, 0, 0, 0 } , | |
| mes4[] = { 0x50, 0x49, 0x20, 0x3d, 0x20, 0x25, 0x2e, 0x36, 0x66, 0xa, 0, 0 } , | |
| mes5[] = { 0xa, 0, 0, 0, 0, 0, 0, 0xe5, 0xae, 0x8c, 0xe4, 0xba, 0x86, 0xa, 0 }; | |
| // プロトタイプ宣言 |
| char mes0[] = { 0xe8, 0xa8, 0x88, 0xe7, 0xae, 0x97, 0, 0, 0, 0, 0, 0 , 0}, | |
| mes1[] = { 0, 0, 0, 0, 0, 0, 0xe5, 0x9b, 0x9e, 0xe6, 0x95, 0xb0, 0xe3, 0x82, 0x92, 0xe5, 0x85, 0xa5, 0xe5, 0x8a, 0x9b, 0x3a, 0x20, 0, 0, 0, 0 } , | |
| mes2[] = { 0x25, 0x6c, 0x6c, 0x64, 0 }, | |
| mes3[] = { 0, 0, 0, 0, 0, 0, 0xe4, 0xb8, 0xad, 0x2e, 0x2e, 0x2e, 0x28, 0x25, 0x36, 0x2e, 0x32, 0x66, 0x25, 0x25, 0x29, 0x20, 0, 0, 0, 0, 0, 0, 0, 0 } , | |
| mes4[] = { 0x50, 0x49, 0x20, 0x3d, 0x20, 0x25, 0x2e, 0x36, 0x66, 0xa, 0, 0 } , | |
| mes5[] = { 0xa, 0, 0, 0, 0, 0, 0, 0xe5, 0xae, 0x8c, 0xe4, 0xba, 0x86, 0xa, 0 }; | |
| void copy(char* base, char* to) ; | |
| void rndInt(void); |
| abstract class Person: | |
| # protected | |
| prop trueAge [get, private set] | |
| abstract prop age [get] | |
| # public | |
| def me(age): | |
| me.trueAge = age | |
| def tellAge => "私は\(me.age)歳です。" |
| # All paths in this configuration file are relative to Dynmap's data-folder: minecraft_server/plugins/dynmap/ | |
| # All map templates are defined in the templates directory | |
| # To use the HDMap very-low-res (2 ppb) map templates as world defaults, set value to vlowres | |
| # The definitions of these templates are in normal-vlowres.txt, nether-vlowres.txt, and the_end-vlowres.txt | |
| # To use the HDMap low-res (4 ppb) map templates as world defaults, set value to lowres | |
| # The definitions of these templates are in normal-lowres.txt, nether-lowres.txt, and the_end-lowres.txt | |
| # To use the HDMap hi-res (16 ppb) map templates (these can take a VERY long time for initial fullrender), set value to hires | |
| # The definitions of these templates are in normal-hires.txt, nether-hires.txt, and the_end-hires.txt | |
| # To use the HDMap low-res (4 ppb) map templates, with support for boosting resolution selectively to hi-res (16 ppb), set value to low_boost_hi |
| のあののあののあののあののあののあののあののあののあのああのののののあののあののあののあののあののあののあののあのののののあののあののあののあののあののあののあののあののあののあののあのののののあののあののあののあののあのののあののあののあのあああああのののあののののののあののあのあのののあののあののあののあののあののあののあのあののあのののあののあののあのあののののののあああのの | |
| のああのああのああのああのああのああのああのああのああのああのああのあああののののあのあののあののあののあののあののあののあののあのあのののああのああのああのああのああのああのああのあああのののあののあののあのあのののああのああのああのああのああのあああのののああのああのああのああのああのああのああのあああののののののあのあのの |