コンピュータ言語/コンストラクション言語/スクリプト言語/マクロ言語/アプリケーションマクロ
VBA(Visual Basic for Applications)、GAS(Google Application Script)、TACL(TRON Application Control-Flow Language)などと同じような、汎用的アプリケーションマクロ言語である。VBAやGASと違って特定アプリケーション(VBAの場合はMS Office、GASの場合はGoogle Apps)に限った対応ではなく、TACLのような全アプリケーションへの対応が可能な仕組みとなっている。
以下に構文/使用例を示す。
pair {
SpreadSheet,
This file contains 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
class AccountingBooks{ | |
AccountingBook journal; | |
AccountingBook generalLedger; | |
AccountingBooks(){ | |
this.journal = AccountingJournal(); | |
this.generalLedger = GeneralLedger(); | |
} | |
void posting(){ | |
this.generalLedger.postingFrom(this.journal as AccountingJournal); | |
} |
This file contains 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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
""" | |
都議会議員選挙2021の議席状況を取得して、円グラフを描画する | |
Seleniumで強引に取ってきてるので、時間がかかる。 | |
TODO: BeautifulSoupでスクレイピングしてみる | |
""" | |
This file contains 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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
""" | |
都議会議員選挙2021の議席状況を取得して、円グラフを描画する | |
Seleniumで強引に取ってきてるので、時間がかかる。 | |
TODO: BeautifulSoupでスクレイピングしてみる | |
""" | |
This file contains 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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
""" | |
都議会議員選挙2021の議席状況を取得して、円グラフを描画する | |
Seleniumで強引に取ってきてるので、時間がかかる。 | |
TODO: BeautifulSoupでスクレイピングしてみる | |
ちなみに、東京議会選挙は英語で"Tokyo Metropolitan Assembly Election"らしい。 | |
""" |
This file contains 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
<html></html> |
This file contains 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
void main() => print([tools.mc.mod,tools.mc.gl].join("\n")); | |
Tool tools = Tool(); | |
class Tool{ | |
MC mc = MC(); | |
} | |
class MC{ | |
String mod = """ | |
IMEP: Integrated Mincraft Enhanced Pack |
This file contains 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
void main(){ | |
int year4m1q3 = ffezCalendar.sys["year4m1q3"]!; | |
int year4d1m1q3 = ffezCalendar.sys["year4d1m1q3"]!; | |
int year4d1m1q4= ffezCalendar.sys["year4d1m1q4"]!; | |
print(365 - year4m1q3); | |
print((365 * 10 + 2) - (year4d1m1q3 * 4) - (year4d1m1q4 * 6)); | |
print((365 * 9 + 2) - (year4d1m1q3 * 4) - (year4d1m1q4 * 5)); | |
print((365 * 19 + 3) - (year4d1m1q3 * 8) - (year4d1m1q4 * 11)); | |
int startYear = 1482; | |
List<bool> lps = [true, true, false, |
This file contains 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
import 'package:flutter/services.dart'; | |
import 'package:flutter/widgets.dart'; | |
class ShortcutPrefer{ | |
LogicalKeyboardKey key; | |
void Function(Event) asNew; | |
static void Function(BuildContext) defaultHandler = (BuildContext context){}; | |
ShortcutPrefer(this.key, this.asNew); | |
} | |
class ShortcutPreferAfresh extends ShortcutPrefer{ |
OlderNewer