38 ADD, SUB, MUL, DIV, LT, GT, LE, GE, NE, EQ, INC, DEC, OR, AND, NOT, NEG, EXP,
43 JF, JT, IDX, KEY, MAT, WAT, SET, GET, WR,
48 FREF, CALL, TCALL, RET, END, SZ, KEYS, TYP, VEC, HASH,
50 struct OpCodeEntry { Opcode op;
const char *name; };
51 extern OpCodeEntry op_table[];
63 std::vector<unsigned int> program;
64 std::vector<vardata_t> constants;
65 std::vector<lk_string> identifiers;
66 std::vector<srcpos_t> debuginfo;
95 : env( parent), fp(fptr), retaddr(ret), nargs(na), iarg(0), thiscall(
false )
111 std::vector< vardata_t > stack;
121 std::vector< frame* > frames;
122 std::vector< bool > brkpt;
128 bool error(
const char *fmt, ... );
133 size_t opcount[__MaxOp];
134 void clear_opcount();
145 vm(
size_t ssize = 4096 );
149 bool run( ExecMode mode = NORMAL );
150 lk_string error() {
return errStr; }
151 virtual bool on_run(
const srcpos_t &spos);
154 int setbrk(
int line,
const lk_string &file );
155 std::vector<srcpos_t> getbrk();
157 size_t get_ip() {
return ip; }
158 frame **get_frames(
size_t *nfrm );
159 vardata_t *get_stack(
size_t *psp );
161 void load( bytecode *b );
162 bytecode *get_bytecode() {
return bc; }
164 virtual bool special_set(
const lk_string &name, vardata_t &val );
165 virtual bool special_get(
const lk_string &name, vardata_t &val );
168 void get_opcount(
size_t iop[__MaxOp] );
Stores instruction stack information.
Definition: vm.h:61
Stores stack frames for vm, default one contains global variables.
Definition: vm.h:93
Records position in source script.
Definition: absyn.h:96
diff --git a/include/lk/absyn.h b/include/lk/absyn.h
index 77055a72..614a666d 100644
--- a/include/lk/absyn.h
+++ b/include/lk/absyn.h
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/include/lk/codegen.h b/include/lk/codegen.h
index 1c3ab8ba..0a46dea2 100644
--- a/include/lk/codegen.h
+++ b/include/lk/codegen.h
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/include/lk/env.h b/include/lk/env.h
index d44deca6..31a414c9 100644
--- a/include/lk/env.h
+++ b/include/lk/env.h
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/include/lk/eval.h b/include/lk/eval.h
index 7f73abbb..8fb37f1e 100644
--- a/include/lk/eval.h
+++ b/include/lk/eval.h
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/include/lk/invoke.h b/include/lk/invoke.h
index b4f0a6b3..f6b97416 100644
--- a/include/lk/invoke.h
+++ b/include/lk/invoke.h
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/include/lk/lex.h b/include/lk/lex.h
index bf02253a..081f137a 100644
--- a/include/lk/lex.h
+++ b/include/lk/lex.h
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/include/lk/parse.h b/include/lk/parse.h
index 2d069640..82785105 100644
--- a/include/lk/parse.h
+++ b/include/lk/parse.h
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/include/lk/stdlib.h b/include/lk/stdlib.h
index f42117a4..53a8597a 100644
--- a/include/lk/stdlib.h
+++ b/include/lk/stdlib.h
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/include/lk/vm.h b/include/lk/vm.h
index cbc38a3b..fb3d722c 100644
--- a/include/lk/vm.h
+++ b/include/lk/vm.h
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/sandbox/sandbox.cpp b/sandbox/sandbox.cpp
index ee0c83c0..49cef7ad 100644
--- a/sandbox/sandbox.cpp
+++ b/sandbox/sandbox.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/src/absyn.cpp b/src/absyn.cpp
index c4f20b26..866a0fb5 100644
--- a/src/absyn.cpp
+++ b/src/absyn.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 805909b3..1c51bee0 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/src/env.cpp b/src/env.cpp
index 009c2184..958b8b5b 100644
--- a/src/env.cpp
+++ b/src/env.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/src/eval.cpp b/src/eval.cpp
index 62309802..a43fb78f 100644
--- a/src/eval.cpp
+++ b/src/eval.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/src/invoke.cpp b/src/invoke.cpp
index 6510c560..6af060cf 100644
--- a/src/invoke.cpp
+++ b/src/invoke.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/src/lex.cpp b/src/lex.cpp
index 6ef31bfe..66b984c4 100644
--- a/src/lex.cpp
+++ b/src/lex.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/src/parse.cpp b/src/parse.cpp
index cebada88..1caab002 100644
--- a/src/parse.cpp
+++ b/src/parse.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/src/stdlib.cpp b/src/stdlib.cpp
index 109bc200..c8ef89ac 100644
--- a/src/stdlib.cpp
+++ b/src/stdlib.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
diff --git a/src/vm.cpp b/src/vm.cpp
index ecbebdc1..45dfb1f1 100644
--- a/src/vm.cpp
+++ b/src/vm.cpp
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License
-Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
+Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/lk/blob/develop/LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: