Skip to content

Instantly share code, notes, and snippets.

LL(1) parser format:
Terminal symbols: { } [ ] : , STR NUM ID
Rule table:
0. [invalid]
1. <json-document> := <object>
2. <json-document> := <array>
3. <value> := <object>
Mode #unicorncastle [+b *!*@*.za] by alyxkitty
<@alyxkitty> fuck south africa.
<+aji> wut
<@alyxkitty> FUCK SOUTH AFRICA.
Mode #unicorncastle [+b *!*@*.cn] by alyxkitty
<@alyxkitty> AND FUCK CHINA TOO.
Mode #unicorncastle [+b *!*@*.pro] by alyxkitty
<@alyxkitty> AND PROFESSIONALS
<@alyxkitty> FUCK PROFESSIONALS, WHILE WE'RE AT IT.
#!/usr/bin/env python
import sys
def usage(argv0):
print('Usage: {} FILE [FILE ...]'.format(argv0))
print('')
print('FILE can be - to mean standard input. Files are concatenated together')
print('and read in the order specified. Files should contain a list of IPv4')
print('addresses, one on each line.')
struct foo {
int data1;
char *data2;
mytype_t mymember;
int data3;
};
...
struct foo blah;
theta ~/work/sandbox/json: cat document.json
{"foo":["bar",2],"baz":true}
theta ~/work/sandbox/json: ./json < document.json
--
{
"baz": true,
"foo": [
"bar",
2
]
diff --git a/src/libmowgli/ext/json.c b/src/libmowgli/ext/json.c
index 191adf0..5614f35 100644
--- a/src/libmowgli/ext/json.c
+++ b/src/libmowgli/ext/json.c
@@ -34,7 +34,7 @@ static mowgli_json_t json_true =
{
.tag = MOWGLI_JSON_TAG_BOOLEAN,
.refcount = JSON_REFCOUNT_CONSTANT,
- .v_bool = true,
+ { .v_bool = true, }
; Alex Iadicicco
; CSE 230 Project 3
.data
matA: .word 3,4,6,8,0,1,1,2,8,7,9,4,5,2
matB: .word 4,2,3,2,4,7,3,6,5,1
matC: .word 0,0,0,0,0,0,0,0
.text
la $a0, matA ; load addresses of matrices
msg-confirm client capability
----------------------------------------------------------------------
Copyright (C) 2012 Alex Iadicicco <alex@ajitek.net>
Unlimited redistribution and modification of this document is allowed,
provided that the above copyright notice and this permission notice
remain intact.
The msg-confirm client capability allows a client's PRIVMSGs and NOTICEs
-rw-r--r-- 1 alex alex 269 Nov 28 23:57 AABBLocalPool.java
-rw-r--r-- 1 alex alex 2674 Nov 28 23:57 AABBPool.java
-rw-r--r-- 1 alex alex 4856 Nov 28 23:57 Achievement.java
-rw-r--r-- 1 alex alex 5869 Nov 28 23:57 AchievementList.java
-rw-r--r-- 1 alex alex 1196 Nov 28 23:57 AchievementMap.java
-rw-r--r-- 1 alex alex 4659 Nov 28 23:57 ActiveRenderInfo.java
-rw-r--r-- 1 alex alex 13718 Nov 28 23:57 AnvilChunkLoader.java
-rw-r--r-- 1 alex alex 376 Nov 28 23:57 AnvilChunkLoaderPending.java
-rw-r--r-- 1 alex alex 558 Nov 28 23:57 AnvilConverterData.java
-rw-r--r-- 1 alex alex 429 Nov 28 23:57 AnvilSaveConverterFileFilter.java
How to reproduce, using Minecraft 1.2.5, MCP 6.2, Forge 3.3.8.164, and IndustrialCraft2
1.103
1. Extract MCP to a folder, copy bin/ resources/ and minecraft_server.jar to jars/ as
explained in the README
2. Extract Forge in folder (creating a forge/ folder within the MCP root directory)
3. Extract fernflower_0.8.61.zip to runtime/bin
4. Run forge/install.sh
5. Copy industrialcraft-2-client_1.103.jar to jars/mods
6. Run ./startclient.sh