Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cs/IntrinsicAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Value GetVar(String variableName) {
return vm.LookupParamByName(variableName);
}

public Interpreter Interpreter() {
public Interpreter GetInterpreter() {
return vm.GetInterpreter();
}
}
Expand Down
2 changes: 1 addition & 1 deletion cs/ShellIntrinsics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ struct tm t;
localtime_r(&stats.st_mtime, &t);
#endif
#endif
char dateBuf[32];
char dateBuf[72];
snprintf(dateBuf, sizeof(dateBuf), "%04d-%02d-%02d %02d:%02d:%02d",
1900 + t.tm_year, 1 + t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec);
Value result = make_map(4);
Expand Down
1 change: 1 addition & 0 deletions cs/VM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// H: #include "ErrorTypes.g.h"
// H: #include "value_map.h"
// H: #include <vector>
// H: #include <chrono>
// H: #include "GCManager.g.h"
// CPP: #include "value_list.h"
// CPP: #include "value_string.h"
Expand Down
2 changes: 1 addition & 1 deletion generated/IntrinsicAPI.g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace MiniScript {
Value Context::GetVar(String variableName) {
return vm.LookupParamByName(variableName);
}
Interpreter Context::Interpreter() {
Interpreter Context::GetInterpreter() {
return vm.GetInterpreter();
}

Expand Down
2 changes: 1 addition & 1 deletion generated/IntrinsicAPI.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct Context {
// argument values, which are far more efficiently found via GetArg (above).
public: Value GetVar(String variableName);

public: Interpreter Interpreter();
public: Interpreter GetInterpreter();
}; // end of struct Context

// IntrinsicResult: represents the result of calling an intrinsic function
Expand Down
2 changes: 1 addition & 1 deletion generated/ShellIntrinsics.g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ Value ShellIntrinsics::FsInfo(String path) {
localtime_r(&stats.st_mtime, &t);
#endif
#endif
char dateBuf[32];
char dateBuf[72];
snprintf(dateBuf, sizeof(dateBuf), "%04d-%02d-%02d %02d:%02d:%02d",
1900 + t.tm_year, 1 + t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec);
Value result = make_map(4);
Expand Down
1 change: 1 addition & 0 deletions generated/VM.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "ErrorTypes.g.h"
#include "value_map.h"
#include <vector>
#include <chrono>
#include "GCManager.g.h"

namespace MiniScript {
Expand Down
130 changes: 65 additions & 65 deletions generated/forward_decs.g.h
Original file line number Diff line number Diff line change
@@ -1,63 +1,17 @@
// FORWARD DECLARATIONS

namespace MiniScript {
struct CodeGenerator;
class CodeGeneratorStorage;
struct CallInfo;
struct VM;
class VMStorage;
struct Context;
struct IntrinsicResult;
struct VMVis;
struct CodeEmitterBase;
class CodeEmitterBaseStorage;
struct LabelReference;
struct BytecodeEmitter;
class BytecodeEmitterStorage;
struct AssemblyEmitter;
class AssemblyEmitterStorage;
struct Assembler;
class AssemblerStorage;
struct Parselet;
class ParseletStorage;
struct PrefixParselet;
class PrefixParseletStorage;
struct InfixParselet;
class InfixParseletStorage;
struct NumberParselet;
class NumberParseletStorage;
struct SelfParselet;
class SelfParseletStorage;
struct SuperParselet;
class SuperParseletStorage;
struct ScopeParselet;
class ScopeParseletStorage;
struct StringParselet;
class StringParseletStorage;
struct IdentifierParselet;
class IdentifierParseletStorage;
struct UnaryOpParselet;
class UnaryOpParseletStorage;
struct AddressOfParselet;
class AddressOfParseletStorage;
struct GroupParselet;
class GroupParseletStorage;
struct ListParselet;
class ListParseletStorage;
struct MapParselet;
class MapParseletStorage;
struct BinaryOpParselet;
class BinaryOpParseletStorage;
struct ComparisonParselet;
class ComparisonParseletStorage;
struct CallParselet;
class CallParseletStorage;
struct IndexParselet;
class IndexParseletStorage;
struct MemberParselet;
class MemberParseletStorage;
struct Intrinsic;
class IntrinsicStorage;
struct Context;
struct IntrinsicResult;
struct Interpreter;
class InterpreterStorage;
struct GCSetBase;
class GCSetBaseStorage;
struct GCStringSet;
Expand All @@ -72,18 +26,12 @@ struct GCHandleSet;
class GCHandleSetStorage;
struct GCFuncRefSet;
class GCFuncRefSetStorage;
struct Parser;
class ParserStorage;
struct GCString;
struct GCList;
struct GCMap;
struct GCError;
struct GCFunction;
struct GCHandle;
struct Interpreter;
class InterpreterStorage;
struct FuncDef;
class FuncDefStorage;
struct VMVis;
struct Token;
struct Lexer;
struct CallInfo;
struct VM;
class VMStorage;
struct ASTNode;
class ASTNodeStorage;
struct NumberNode;
Expand Down Expand Up @@ -140,9 +88,61 @@ struct ScopeNode;
class ScopeNodeStorage;
struct ReturnNode;
class ReturnNodeStorage;
struct App;
struct Parselet;
class ParseletStorage;
struct PrefixParselet;
class PrefixParseletStorage;
struct InfixParselet;
class InfixParseletStorage;
struct NumberParselet;
class NumberParseletStorage;
struct SelfParselet;
class SelfParseletStorage;
struct SuperParselet;
class SuperParseletStorage;
struct ScopeParselet;
class ScopeParseletStorage;
struct StringParselet;
class StringParseletStorage;
struct IdentifierParselet;
class IdentifierParseletStorage;
struct UnaryOpParselet;
class UnaryOpParseletStorage;
struct AddressOfParselet;
class AddressOfParseletStorage;
struct GroupParselet;
class GroupParseletStorage;
struct ListParselet;
class ListParseletStorage;
struct MapParselet;
class MapParseletStorage;
struct BinaryOpParselet;
class BinaryOpParseletStorage;
struct ComparisonParselet;
class ComparisonParseletStorage;
struct CallParselet;
class CallParseletStorage;
struct IndexParselet;
class IndexParseletStorage;
struct MemberParselet;
class MemberParseletStorage;
struct VarMapBacking;
class VarMapBackingStorage;
struct Token;
struct Lexer;
struct CodeGenerator;
class CodeGeneratorStorage;
struct Intrinsic;
class IntrinsicStorage;
struct Parser;
class ParserStorage;
struct GCString;
struct GCList;
struct GCMap;
struct GCError;
struct GCFunction;
struct GCHandle;
struct App;
struct Assembler;
class AssemblerStorage;
struct FuncDef;
class FuncDefStorage;
}