conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Remove comment about top level primitives"
},
{
"from": "human",
"value": "\n/*\n ECMA-262 5th Edition, 15.12.1 The JSON Grammar.\n Modified to forbid top level primitives.\n*/\n\n\n/* author: Zach Carter */\n\n\n%start JSONText\n\n%%\n\nJSONString\n : STRING\n... | yacc | chosen |
[
{
"from": "system",
"value": "Add format test: FunctionCall(FunctionCall(...), ...) in addition to standard FunctionCall(Reference(...), ...)\n"
},
{
"from": "human",
"value": "def main() {\n def foo() {\n 1;\n }\n foo() + foo();\n}\n\ndef bar(a, b, c, d, e) {\n bar(b, c, d, e... | yacc | chosen |
[
{
"from": "human",
"value": "Add a mostly-complete grammar for the Cowgol language.\n"
},
{
"from": "gpt",
"value": "%{\n%}\n%token ID NUMBER STRING\n%token SUB WHILE LOOP IF ELSE ELSEIF VAR BREAK CONTINUE\n%token CONST RECORD RETURN GOTO END\n%token SEGMENT INDEX\n%token SEMICOLON COLON ASSIGN ... | yacc | chosen |
README.md exists but content is empty.
- Downloads last month
- 5