A lexer for the C programming language.
This page shows examples of source files lexed by the same lexer, but rendered into HTML using different styles.
Some styles are richer than others in that they define more different token categories. Examples of such richer styles are the Default style, the Tango style and the Colorful style.
In all cases the lexer is the same, and the only difference is the colors defined by the styles.
You can access this style as:
Makeup.Styles.HTML.StyleMap.abap_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.algol_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.algol_nu_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.arduino_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.autumn_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.borland_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.bw_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.colorful_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.default_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.emacs_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.friendly_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.fruity_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.igor_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.lovelace_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.manni_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.monokai_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.murphy_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.native_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.paraiso_dark_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.paraiso_light_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.pastie_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.perldoc_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.rainbow_dash_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.rrt_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.tango_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.trac_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.vim_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.vs_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}
You can access this style as:
Makeup.Styles.HTML.StyleMap.xcode_style()
And invoke Makeup.stylesheet(style)
to generate the appropriate stylesheets for you.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "codegen.h"
#include "symboltable.h"
#include "stringbuffer.h"
extern void yyerror(char* msg);
static stringBuffer* staticVariableBuffer;
static stringBuffer* classInitBuffer;
static stringBuffer* currentMethodBuffer;
static stringBuffer* finishedMethodsBuffer;
static stringBuffer* mainBuffer;
static int currentMethodBufferIndex;
static int currentMethodStackSize;
static int currentMethodStackSizeMax;
static int currentMethodNumberOfLocals;
char tempString[MAX_LENGTH_OF_COMMAND];
extern char* className; /* from minako-syntax.y */
/* forward declarations */
static void increaseStackby(int stackdiff);
char convertType(int type);
void codegenInit() {
staticVariableBuffer = newStringBuffer();
classInitBuffer = newStringBuffer();
currentMethodBuffer = 0;
finishedMethodsBuffer = newStringBuffer();
mainBuffer = newStringBuffer();
stringBufferAppend(mainBuffer, "; ------- Header --------------------------------------------");
sprintf(tempString, ".class public synchronized %s", className);
stringBufferAppend(mainBuffer, tempString);
stringBufferAppend(mainBuffer, ".super java/lang/Object");
stringBufferAppend(mainBuffer, "; -----------------------------------------------------------");
stringBufferAppend(mainBuffer, "");
stringBufferAppend(finishedMethodsBuffer, "; ------- Constructor ---------------------------------------");
stringBufferAppend(finishedMethodsBuffer, ".method public <init>()V");
stringBufferAppend(finishedMethodsBuffer, "\t.limit stack 1");
stringBufferAppend(finishedMethodsBuffer, "\t.limit locals 1");
stringBufferAppend(finishedMethodsBuffer, "\taload_0");
stringBufferAppend(finishedMethodsBuffer, "\tinvokenonvirtual java/lang/Object/<init>()V");
stringBufferAppend(finishedMethodsBuffer, "\treturn");
stringBufferAppend(finishedMethodsBuffer, ".end method");
stringBufferAppend(finishedMethodsBuffer, "; -----------------------------------------------------------");
stringBufferAppend(finishedMethodsBuffer, "");
stringBufferAppend(staticVariableBuffer, "; ------- Class Variables -----------------------------------");
stringBufferAppend(classInitBuffer, "; ------- Class Initializer ---------------------------------");
stringBufferAppend(classInitBuffer, ".method static <clinit>()V");
classInitBufferIndex = classInitBuffer->numberOfNextElement;
stringBufferAppend(classInitBuffer, "\t.limit locals 0");
}
void codegenAppendCommand(char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
increaseStackby(stackdiff);
}
void codegenInsertCommand(int address, char* cmd, int stackdiff) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "\t%s", cmd);
if (global) stringBufferInsert(classInitBuffer, address, tempString);
else stringBufferInsert(currentMethodBuffer, address, tempString);
increaseStackby(stackdiff);
}
void codegenAppendLabel(int label) {
char tempString[MAX_LENGTH_OF_COMMAND];
sprintf(tempString, "Label%d:", label);
if (global) stringBufferAppend(classInitBuffer, tempString);
else stringBufferAppend(currentMethodBuffer, tempString);
}