ucode
JavaScript-like language with optional templating
File Explorer
Download Latest Version (.zip)- debian.yml
- jsdoc.yml
- macos.yml
- openwrt-ci-master.yml
- openwrt-ci-pull-request.yml
- format
- lintian-overrides
- changelog
- control
- copyright
- libucode-dev.install
- libucode-dev.lintian-overrides
- libucode.install
- libucode.lintian-overrides
- rules
- ucode-modules.install
- ucode-modules.lintian-overrides
- ucode.install
- ucode.lintian-overrides
- 01-usage.md
- 02-syntax.md
- 03-memory.md
- 04-arrays.md
- 05-dictionaries.md
- tutorials.json
- .nojekyll
- CNAME
- README.md
- ucode.css
- CMakeLists.txt
- exception-handler.c
- execute-file.c
- execute-string.c
- native-function.c
- state-reset.c
- state-reuse.c
- ioctl.h
- const.h
- fib_rules.h
- ieee80211.h
- if.h
- if_addr.h
- if_addrlabel.h
- if_bridge.h
- if_ether.h
- if_link.h
- if_macsec.h
- if_tunnel.h
- ila.h
- in6.h
- ip.h
- ip6_tunnel.h
- ipv6.h
- lwtunnel.h
- mac80211_hwsim.h
- mpls.h
- mpls_iptunnel.h
- neighbour.h
- netconf.h
- netlink.h
- nl80211.h
- rtnetlink.h
- seg6.h
- seg6_hmac.h
- seg6_iptunnel.h
- socket.h
- types.h
- veth.h
- chunk.h
- compiler.h
- lexer.h
- lib.h
- module.h
- platform.h
- program.h
- source.h
- types.h
- util.h
- vallist.h
- vm.h
- c-transpiler.js
- conf.json
- debug.c
- digest.c
- fs.c
- io.c
- log.c
- math.c
- nl80211.c
- resolv.c
- rtnl.c
- socket.c
- struct.c
- ubus.c
- uci.c
- uloop.c
- zlib.c
- Makefile
- CMakeLists.txt
- test_basic.t
- 00_single_line_comments
- 01_unterminated_comment
- 02_multi_line_comments
- 03_expression_blocks
- 04_statement_blocks
- 05_block_nesting
- 06_open_statement_block
- 07_embedded_single_line_comments
- 08_embedded_multi_line_comments
- 09_string_literals
- 10_numeric_literals
- 11_misc_literals
- 12_block_whitespace_control
- 13_object_literals
- 14_array_literals
- 15_function_declarations
- 16_for_loop
- 17_while_loop
- 18_if_condition
- 19_arrow_functions
- 20_list_expressions
- 21_regex_literals
- 22_strict_mode
- 23_optional_chaining
- 24_null_coalesce
- 25_and_or_assignment
- 26_exponentiation
- 27_template_literals
- 28_in_operator
- 29_function_forward_declarations
- 29_method_shorthand
- 00_value_conversion
- 01_division
- 02_modulo
- 03_bitwise
- 04_inc_dec
- 05_overflow
- 00_scoping
- 01_break_continue
- 02_this
- 03_try_catch
- 04_switch_case
- 05_closure_scope
- 06_recursion
- 07_raw_template_mode_switching
- 08_object_iteration
- 01_chr
- 02_die
- 03_exists
- 04_exit
- 05_getenv
- 06_filter
- 07_hex
- 08_int
- 09_join
- 10_keys
- 11_lc
- 12_map
- 13_ord
- 14_type
- 15_reverse
- 16_sort
- 17_splice
- 18_split
- 19_substr
- 20_time
- 21_uc
- 22_uchr
- 23_values
- 24_trim
- 25_ltrim
- 26_rtrim
- 27_sprintf
- 28_printf
- 29_require
- 30_iptoarr
- 31_arrtoip
- 32_match
- 33_replace
- 34_json
- 35_include
- 36_render
- 37_warn
- 38_system
- 39_trace
- 40_proto
- 41_sleep
- 42_assert
- 43_regexp
- 44_wildcard
- 45_sourcepath
- 46_min
- 47_max
- 48_b64dec
- 49_b64enc
- 50_uniq
- 51_localtime
- 52_gmtime
- 53_timelocal
- 54_timegm
- 55_clock
- 56_hexdec
- 57_hexenc
- 58_index
- 59_rindex
- 60_gc
- 61_loadstring
- 62_loadfile
- 63_call
- 64_slice
- 65_push
- 66_unshift
- 67_pop
- 68_shift
- 01_export_variable_declaration
- 02_export_function_declaration
- 03_export_list
- 04_export_rename
- 05_export_default
- 06_export_errors
- 07_import_default
- 08_import_list
- 09_import_wildcard
- 10_import_none
- 11_import_many_exec_once
- 12_import_immutability
- 13_import_liveness
- 14_circular_imports
- 15_complex_imports
- 16_multi_program_imports
- 01_try_catch_stack_mismatch
- 02_array_pop_use_after_free
- 03_switch_fallthrough_miscompilation
- 04_property_set_abort
- 05_duplicate_resource_type
- 06_lexer_escape_at_boundary
- 07_lexer_overlong_lines
- 08_compiler_arrow_fn_expressions
- 09_reject_invalid_array_indexes
- 10_break_stack_mismatch
- 11_switch_stack_mismatch
- 12_altblock_stack_mismatch
- 13_split_by_string_leading_trailing
- 14_incomplete_expression_at_eof
- 15_segfault_on_prefix_increment
- 16_hang_on_regexp_at_eof
- 17_hang_on_unclosed_expression_block
- 18_hang_on_line_comments_at_eof
- 19_truncated_format_string
- 20_use_strict_stack_mismatch
- 21_compiler_parenthesized_prop_keyword
- 22_compiler_break_continue_scoping
- 23_compiler_parenthesized_division
- 24_compiler_local_for_loop_declaration
- 25_lexer_shifted_offsets
- 26_compiler_jmp_to_zero
- 27_invalid_sparse_array_set
- 28_null_equality
- 29_empty_string_as_number
- 30_nan_strict_equality
- 31_vallist_8bit_shortstrings
- 32_compiler_switch_patchlist_corruption
- 33_vm_computed_prop_decl_crash
- 34_dirname_off_by_one
- 35_vm_callframe_double_free
- 36_vm_nested_call_return
- 37_compiler_unexpected_unary_op
- 38_index_segfault
- 39_compiler_switch_continue_mismatch
- 40_lexer_bug_on_lstrip_off
- 41_compiler_invalid_return_opcode
- 42_types_binary_string_comparison
- 43_types_json_double_format
- 44_compiler_as_from_identifier
- 45_compiler_loop_ctrl_unclosed_upvals
- 46_getenv_destroys_environ
- 47_compiler_no_prop_kw_after_spread
- 48_use_after_free_on_iteration_insert
- 49_trailing_garbage_string_as_number
- 50_missing_upvalue_resolving
- 51_preserve_lexer_flags
- 52_ucode_option_arguments
- 53_filter_map_gc_use_after_free
- 53_int64_min_division_sigfpe
- 53_named_funcexpr_scope
- 54_json_read_method_use_after_free
- 55_strict_undeclared_assignment
- 55_zlib_read_method_use_after_free
- 56_negative_base_exponentiation
- 56_socket_poll_use_after_free
- 57_resource_uvcount0_retain_leak
- CMakeLists.txt
- run_tests.uc
- .keep
- CMakeLists.txt
- test-fuzz.c
- CMakeLists.txt
- .editorconfig
- .gitignore
- .gitlab-ci.yml
- chunk.c
- CMakeLists.txt
- compiler.c
- json-c-compat.h
- lexer.c
- lib.c
- LICENSE
- main.c
- package.json
- platform.c
- program.c
- README.md
- source.c
- types.c
- vallist.c
- vm.c
# Installation Guide
1. Get the code
git clone https://github.com/jow-/ucode
Downloads the entire project code from GitHub to your computer.
cd ucode
Moves into the project folder you just downloaded.
2. CMake
Medium RecommendedPrerequisites
mkdir build && cd build
Creates a folder to hold the build output and moves into it.
cmake ..
Analyzes the source code and generates build configuration files (must be run inside the build folder).
make
Compiles the code based on the generated build configuration to produce an executable.
Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).
3. Node.js
EasyPrerequisites
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
4. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd openwrt/ucode
This project's files live in a subfolder, so move into it first.
make
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation
Was this content helpful?
(0 ratings)
