• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

data/25-Apr-2025-12,01912,008

static/25-Apr-2025-291203

templates/25-Apr-2025-5852

tests/25-Apr-2025-521445

BUILDD25-Apr-20251.3 KiB7263

README.mdD25-Apr-20251 KiB4938

WORKSPACED25-Apr-2025816 3023

app.pyD25-Apr-20254.2 KiB12694

json.luaD25-Apr-20258.4 KiB366280

lua.BUILDD25-Apr-2025764 3937

lua_engine.ccD25-Apr-202518.3 KiB501249

lua_engine.hD25-Apr-20257.7 KiB18740

package-lock.jsonD25-Apr-202517.6 KiB412411

package.jsonD25-Apr-2025314 1313

requirements.txtD25-Apr-2025155 99

rollup.config.jsD25-Apr-2025195 66

README.md

1Lua Interpreter
2=====
3
4The Lua Interpreter is a web-based IDE tool that can run Lua scripts with the specific Android Auto telemetry callbacks.
5
6## Prerequisites
7***
8Install the required node dependencies using npm with
9```
10sudo apt install nodejs
11npm install
12```
13
14Install Bazel with
15```
16sudo apt install bazel
17```
18
19Change the LUA_SRC inside the WORKSPACE file to point to the directory containing the headers
20of the Lua C API which should be in $ANDROID_BUILD_TOP/external/lua/src.
21
22## Running
23***
24Run the following commands on the command line to start the server:
25```
26npm run build; bazel run server
27```
28
29Open the link provided from starting the server to access the tool (the link is accessible from the terminal window).
30
31## Testing
32***
33The following commands assume you are at the root directory.
34
35To test everything, run:
36```
37bazel test --test_output=all //tests:lua_interpreter_tests
38```
39
40To test the server, run:
41```
42bazel test --test_output=all //tests:app_test
43```
44
45To test the Lua Engine, run:
46```
47bazel test --test_output=all //tests:lua_engine_test
48```
49