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
<?php | |
class BNFParser { | |
private $unparsedString; | |
private $defs = []; | |
public function __construct(string $bnfString = null) | |
{ |
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
<?php | |
class BNFParserGenerator { | |
private $defs = []; | |
/** | |
* This converts the BNF string into a set of generator definitions | |
* that we can use later | |
* @param string $string |
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
const https = require('https'); | |
const yourWebHookURL = ''; // PUT YOUR WEBHOOK URL HERE | |
const slackMessage = { | |
'text': 'your message here', | |
}; | |
function sendSlackMessage (webhookURL, messageBody) { | |
try { | |
messageBody = JSON.stringify(messageBody); |