category | total lines | num files |
mycpp Python Runtime | 956 | 4 |
mycpp Translator | 6,252 | 12 |
mycpp Test Data | 4,671 | 51 |
Zephyr ASDL | 3,193 | 11 |
pgen2 Parser Generator | 1,854 | 8 |
Other Code Generators | 3,096 | 11 |
Yaks | 507 | 4 |
Hand-written C++ Code | 3,395 | 28 |
Garbage-Collected Runtime | 5,408 | 26 |
Unit tests in C++ | 7,865 | 27 |
Incremental C++ Build | 4,036 | 20 |
OSH (and common libraries) | 47,608 | 86 |
YSH | 11,452 | 27 |
Data Languages | 3,319 | 12 |
Tools | 1,521 | 5 |
Spec Tests | 66,966 | 212 |
Gold Tests | 2,782 | 27 |
Generated C++ Code | 127,277 | 41 |
Stubs that are re-implemented in C++
mycpp/iolib.py 165 mycpp/mops.py 293 mycpp/mylib.py 498 956 lines in 4 files
This prototype uses the MyPy frontend to translate statically-typed Python to C++. The generated code calls a small runtime which implements things like List[T], Dict[K, V], and Python's len().
mycpp/const_pass.py 234 mycpp/control_flow_pass.py 548 mycpp/conversion_pass.py 391 mycpp/cppgen_pass.py 2,858 mycpp/crash.py 38 mycpp/format_strings.py 120 mycpp/mycpp_main.py 285 mycpp/pass_state.py 611 mycpp/translate.py 225 mycpp/util.py 200 mycpp/visitor.py 742 6,252 lines in 12 files
Small Python examples that translate to C++, compile, and run.
mycpp/examples/__init__.py 0 mycpp/examples/asdl_generated.py 65 mycpp/examples/cartesian.py 78 mycpp/examples/cgi.py 62 mycpp/examples/classes.py 296 mycpp/examples/containers.py 289 mycpp/examples/control_flow.py 113 mycpp/examples/escape.py 70 mycpp/examples/fib_iter.py 53 mycpp/examples/fib_recursive.py 49 mycpp/examples/files.py 64 mycpp/examples/gc_stack_roots.py 188 mycpp/examples/invalid_condition.py 31 mycpp/examples/invalid_ctx_raise.py 51 mycpp/examples/invalid_default_args.py 44 mycpp/examples/invalid_except.py 38 mycpp/examples/invalid_format_args.py 15 mycpp/examples/invalid_format_strings.py 20 mycpp/examples/invalid_global.py 18 mycpp/examples/invalid_other.py 63 mycpp/examples/invalid_print.py 13 mycpp/examples/invalid_python.py 61 mycpp/examples/invalid_switch.py 84 mycpp/examples/invalid_try_else.py 38 mycpp/examples/invalid_types.py 31 mycpp/examples/invalid_types_2.py 31 mycpp/examples/length.py 109 mycpp/examples/lexer_main.py 47 mycpp/examples/loops.py 229 mycpp/examples/modules.py 81 mycpp/examples/parse.py 344 mycpp/examples/pea_hello.py 10 mycpp/examples/pgen2_demo.py 106 mycpp/examples/scoped_resource.py 259 mycpp/examples/test_arith_ops.py 45 mycpp/examples/test_cast.py 211 mycpp/examples/test_classes_gc.py 212 mycpp/examples/test_conditional.py 66 mycpp/examples/test_ctx_pattern.py 65 mycpp/examples/test_default_args.py 75 mycpp/examples/test_globals.py 62 mycpp/examples/test_hoist.py 61 mycpp/examples/test_integers.py 75 mycpp/examples/test_io_os_error.py 131 mycpp/examples/test_iterators.py 101 mycpp/examples/test_small_str.py 33 mycpp/examples/test_strings.py 277 mycpp/examples/test_switch.py 80 mycpp/examples/tuple_return_value.py 83 mycpp/examples/varargs.py 44 4,671 lines in 51 files
A DSL for algebraic data types, borrowed from Python. Oils is the most strongly typed Bourne shell implementation!
asdl/asdl_main.py 344 asdl/ast.py 270 asdl/format.py 157 asdl/front_end.py 590 asdl/gen_cpp.py 892 asdl/gen_python.py 649 asdl/pybase.py 39 asdl/runtime.py 68 asdl/util.py 11 asdl/visitor.py 173 3,193 lines in 11 files
An LL(1) parser generator used to parse YSH expressions. Also borrowed from CPython.
pgen2/driver.py 101 pgen2/grammar.py 303 pgen2/parse.py 225 pgen2/pgen.py 430 pgen2/pnode.py 67 pgen2/token.py 149 pgen2/tokenize.py 579 1,854 lines in 8 files
In order to make Oils statically typed, we had to abandon Python reflection and use C++ source code generation instead. The lexer, flag definitions, and constants can be easily compiled to C++.
core/optview_gen.py 94 cpp/embedded_file_gen.py 66 doctools/help_gen.py 694 frontend/consts_gen.py 653 frontend/flag_gen.py 546 frontend/lexer_gen.py 500 frontend/option_gen.py 94 frontend/signal_gen.py 105 osh/arith_parse_gen.py 99 ysh/grammar_gen.py 245 3,096 lines in 11 files
Experimental replacement for mycpp
yaks/gen_cpp.py 104 yaks/transform.py 250 yaks/yaks_main.py 153 507 lines in 4 files
Includes OS bindings. Small C++ files like cpp/osh_arith_parse.{cc,h} correspond to larger Python files like osh/arith_parse.py.
cpp/core.cc 442 cpp/core.h 132 cpp/data_lang.cc 273 cpp/data_lang.h 34 cpp/embedded_file.h 18 cpp/fanos.cc 57 cpp/fanos.h 18 cpp/fanos_shared.h 49 cpp/frontend_flag_spec.cc 234 cpp/frontend_flag_spec.h 153 cpp/frontend_match.cc 155 cpp/frontend_match.h 92 cpp/frontend_pyreadline.cc 399 cpp/frontend_pyreadline.h 94 cpp/libc.cc 253 cpp/libc.h 39 cpp/osh.cc 161 cpp/osh.h 50 cpp/osh_tdop.cc 16 cpp/osh_tdop.h 52 cpp/pgen2.cc 44 cpp/pgen2.h 86 cpp/pylib.cc 58 cpp/pylib.h 22 cpp/stdlib.cc 276 cpp/stdlib.h 177 cpp/translation_stubs.h 11 3,395 lines in 28 files
Uses a fork-friendly Mark-Sweep collector.
mycpp/common.h 92 mycpp/comparators.h 90 mycpp/gc_alloc.h 228 mycpp/gc_builtins.cc 468 mycpp/gc_builtins.h 175 mycpp/gc_dict.h 471 mycpp/gc_iolib.cc 46 mycpp/gc_iolib.h 175 mycpp/gc_list.h 546 mycpp/gc_mops.cc 79 mycpp/gc_mops.h 120 mycpp/gc_mylib.cc 311 mycpp/gc_mylib.h 375 mycpp/gc_obj.h 185 mycpp/gc_slab.h 58 mycpp/gc_str.cc 645 mycpp/gc_str.h 229 mycpp/gc_tuple.h 151 mycpp/hash.cc 45 mycpp/hash.h 22 mycpp/mark_sweep_heap.cc 457 mycpp/mark_sweep_heap.h 352 mycpp/probes.h 39 mycpp/runtime.h 25 mycpp/test_common.h 24 5,408 lines in 26 files
The goal is to make the spec tests pass, but unit tests are helpful too.
cpp/core_test.cc 361 cpp/data_lang_test.cc 178 cpp/data_race_test.cc 206 cpp/frontend_flag_spec_test.cc 154 cpp/frontend_match_test.cc 87 cpp/libc_test.cc 403 cpp/obj_layout_test.cc 215 cpp/osh_test.cc 50 cpp/pgen2_test.cc 32 cpp/pylib_test.cc 52 cpp/stdlib_test.cc 158 cpp/unicode_test.cc 71 mycpp/bump_leak_heap_test.cc 62 mycpp/float_test.cc 150 mycpp/gc_builtins_test.cc 460 mycpp/gc_dict_test.cc 745 mycpp/gc_heap_test.cc 479 mycpp/gc_iolib_test.cc 109 mycpp/gc_list_test.cc 593 mycpp/gc_mops_test.cc 182 mycpp/gc_mylib_test.cc 327 mycpp/gc_str_test.cc 1,558 mycpp/gc_stress_test.cc 222 mycpp/gc_tuple_test.cc 139 mycpp/mark_sweep_heap_test.cc 370 mycpp/small_str_test.cc 502 7,865 lines in 27 files
NINJA-config.sh 108 asdl/NINJA_subgraph.py 56 bin/NINJA_subgraph.py 214 build/ninja-rules-cpp.sh 431 build/ninja-rules-py.sh 369 build/ninja_lib.py 801 build/ninja_lib_test.py 260 build/ninja_main.py 545 core/NINJA_subgraph.py 58 cpp/NINJA_subgraph.py 227 data_lang/NINJA_subgraph.py 66 display/NINJA_subgraph.py 16 frontend/NINJA_subgraph.py 177 mycpp/NINJA_subgraph.py 457 osh/NINJA_subgraph.py 32 pea/NINJA_subgraph.py 19 prebuilt/NINJA_subgraph.py 79 yaks/NINJA_subgraph.py 82 ysh/NINJA_subgraph.py 39 4,036 lines in 20 files
This is the input to the translators, written in statically-typed Python. Note that bash is at least 140K lines of code, and OSH implements a large part of bash and more.
bin/oils_for_unix.py 212 builtin/assign_osh.py 654 builtin/bracket_osh.py 292 builtin/completion_osh.py 513 builtin/dirs_osh.py 349 builtin/io_osh.py 142 builtin/misc_osh.py 127 builtin/printf_osh.py 552 builtin/process_osh.py 685 builtin/pure_osh.py 588 builtin/read_osh.py 536 builtin/readline_osh.py 378 builtin/trap_osh.py 322 core/alloc.py 221 core/bash_impl.py 631 core/comp_ui.py 585 core/completion.py 1,529 core/dev.py 767 core/error.py 369 core/executor.py 1,053 core/main_loop.py 484 core/num.py 24 core/optview.py 58 core/process.py 2,182 core/pyos.py 326 core/pyutil.py 225 core/runtime.asdl 193 core/sh_init.py 320 core/shell.py 1,297 core/state.py 3,051 core/util.py 172 core/value.asdl 236 core/vm.py 528 display/ansi.py 15 display/pp_hnode.py 311 display/pp_value.py 354 display/pretty.asdl 44 display/pretty.py 333 display/ui.py 649 frontend/args.py 698 frontend/builtin_def.py 171 frontend/consts.py 409 frontend/flag_def.py 588 frontend/flag_spec.py 356 frontend/flag_util.py 69 frontend/id_kind_def.py 813 frontend/lexer.py 455 frontend/lexer_def.py 1,142 frontend/location.py 598 frontend/match.py 310 frontend/option_def.py 441 frontend/parse_lib.py 409 frontend/py_readline.py 178 frontend/reader.py 280 frontend/signal_def.py 94 frontend/syntax.asdl 702 frontend/syntax_abbrev.py 146 frontend/typed_args.py 675 frontend/types.asdl 61 osh/arith_parse.py 197 osh/bool_parse.py 272 osh/bool_stat.py 135 osh/braces.py 539 osh/cmd_eval.py 2,582 osh/cmd_parse.py 2,879 osh/glob_.py 511 osh/history.py 193 osh/prompt.py 368 osh/sh_expr_eval.py 1,309 osh/split.py 319 osh/string_ops.py 554 osh/tdop.py 342 osh/word_.py 828 osh/word_compile.py 309 osh/word_eval.py 2,696 osh/word_parse.py 2,269 pyext/fanos.c 119 pyext/fastfunc.c 133 pyext/fastfunc.pyi 11 pyext/fastlex.c 385 pyext/fastlex.pyi 21 pyext/libc.c 441 pyext/libc.pyi 26 pyext/line_input.pyi 58 pyext/posix_.pyi 210 47,608 lines in 86 files
Expression grammar, parser, evaluator, etc.
builtin/completion_ysh.py 69 builtin/error_ysh.py 307 builtin/func_eggex.py 186 builtin/func_hay.py 157 builtin/func_misc.py 611 builtin/func_reflect.py 332 builtin/hay_ysh.py 432 builtin/io_ysh.py 291 builtin/json_ysh.py 140 builtin/meta_oils.py 1,024 builtin/method_dict.py 95 builtin/method_io.py 318 builtin/method_list.py 205 builtin/method_other.py 120 builtin/method_str.py 618 builtin/method_type.py 141 builtin/module_ysh.py 141 builtin/private_ysh.py 220 builtin/pure_ysh.py 232 ysh/expr_eval.py 1,591 ysh/expr_parse.py 389 ysh/expr_to_ast.py 1,729 ysh/func_proc.py 606 ysh/grammar.pgen2 545 ysh/regex_translate.py 393 ysh/val_ops.py 560 11,452 lines in 27 files
JSON, J8 Notation, ...
data_lang/htm8.asdl 86 data_lang/nil8.asdl 31 data_lang/htm8.py 754 data_lang/htm8_util.py 294 data_lang/j8.py 1,338 data_lang/j8_lite.py 56 data_lang/pyj8.py 27 data_lang/j8.h 314 data_lang/j8_libc.c 221 data_lang/j8_libc.h 28 data_lang/utf8.h 170 3,319 lines in 12 files
tools/deps.py 148 tools/fmt.py 25 tools/readlink.py 31 tools/ysh_ify.py 1,317 1,521 lines in 5 files
A comprehensive test suite that compares OSH against other shells. If OSH passes these tests in BOTH Python and C++, it means that the translation works.
spec/alias.test.sh 571 spec/append.test.sh 327 spec/arith-context.test.sh 216 spec/arith-dynamic.test.sh 95 spec/arith.test.sh 1,040 spec/array-assign.test.sh 376 spec/array-assoc.test.sh 790 spec/array-basic.test.sh 45 spec/array-compat.test.sh 189 spec/array-literal.test.sh 126 spec/array-sparse.test.sh 1,224 spec/array.test.sh 1,027 spec/assign-deferred.test.sh 115 spec/assign-dialects.test.sh 149 spec/assign-extended.test.sh 986 spec/assign.test.sh 751 spec/background.test.sh 398 spec/ble-features.test.sh 387 spec/ble-idioms.test.sh 623 spec/ble-unset.test.sh 243 spec/blog-other1.test.sh 66 spec/blog1.test.sh 96 spec/blog2.test.sh 60 spec/brace-expansion.test.sh 502 spec/bugs.test.sh 436 spec/builtin-bash.test.sh 215 spec/builtin-bind.test.sh 158 spec/builtin-bracket.test.sh 767 spec/builtin-cd.test.sh 475 spec/builtin-completion.test.sh 641 spec/builtin-dirs.test.sh 243 spec/builtin-echo.test.sh 320 spec/builtin-eval-source.test.sh 349 spec/builtin-getopts.test.sh 391 spec/builtin-history.test.sh 198 spec/builtin-kill.test.sh 30 spec/builtin-meta-assign.test.sh 376 spec/builtin-meta.test.sh 365 spec/builtin-misc.test.sh 164 spec/builtin-printf.test.sh 1,286 spec/builtin-process.test.sh 612 spec/builtin-read.test.sh 775 spec/builtin-special.test.sh 310 spec/builtin-times.test.sh 16 spec/builtin-trap-bash.test.sh 657 spec/builtin-trap-err.test.sh 647 spec/builtin-trap.test.sh 366 spec/builtin-type-bash.test.sh 339 spec/builtin-type.test.sh 166 spec/builtin-vars.test.sh 707 spec/case_.test.sh 244 spec/command-parsing.test.sh 65 spec/command-sub-ksh.test.sh 109 spec/command-sub.test.sh 299 spec/command_.test.sh 195 spec/comments.test.sh 12 spec/dbracket.test.sh 494 spec/divergence.test.sh 57 spec/dparen.test.sh 208 spec/empty-bodies.test.sh 25 spec/errexit-osh.test.sh 813 spec/errexit.test.sh 532 spec/exit-status.test.sh 280 spec/explore-parsing.test.sh 43 spec/extglob-files.test.sh 384 spec/extglob-match.test.sh 392 spec/fatal-errors.test.sh 187 spec/for-expr.test.sh 173 spec/func-parsing.test.sh 106 spec/glob-bash.test.sh 144 spec/glob.test.sh 295 spec/globignore.test.sh 164 spec/globstar.test.sh 97 spec/hay-isolation.test.sh 169 spec/hay-meta.test.sh 307 spec/hay.test.sh 888 spec/here-doc.test.sh 411 spec/if_.test.sh 55 spec/interactive-parse.test.sh 37 spec/interactive.test.sh 401 spec/introspect.test.sh 287 spec/let.test.sh 23 spec/loop.test.sh 615 spec/nameref.test.sh 637 spec/nix-idioms.test.sh 196 spec/nocasematch-match.test.sh 71 spec/nul-bytes.test.sh 450 spec/osh-bugs.test.sh 31 spec/parse-errors.test.sh 221 spec/pipeline.test.sh 280 spec/posix.test.sh 161 spec/print-source-code.test.sh 63 spec/process-sub.test.sh 204 spec/prompt.test.sh 349 spec/quote.test.sh 245 spec/redir-order.test.sh 61 spec/redirect-command.test.sh 344 spec/redirect-multi.test.sh 308 spec/redirect.test.sh 502 spec/regex.test.sh 635 spec/serialize.test.sh 232 spec/sh-func.test.sh 186 spec/sh-options-bash.test.sh 153 spec/sh-options.test.sh 837 spec/sh-usage.test.sh 124 spec/shell-bugs.test.sh 36 spec/shell-grammar.test.sh 208 spec/smoke.test.sh 126 spec/spec-harness-bug.test.sh 9 spec/strict-options.test.sh 351 spec/subshell.test.sh 23 spec/temp-binding.test.sh 154 spec/tilde.test.sh 184 spec/toysh-posix.test.sh 395 spec/toysh.test.sh 140 spec/type-compat.test.sh 159 spec/unicode.test.sh 196 spec/var-num.test.sh 43 spec/var-op-bash.test.sh 536 spec/var-op-len.test.sh 221 spec/var-op-patsub.test.sh 413 spec/var-op-slice.test.sh 410 spec/var-op-strip.test.sh 358 spec/var-op-test.test.sh 829 spec/var-ref.test.sh 769 spec/var-sub-quote.test.sh 313 spec/var-sub.test.sh 64 spec/vars-bash.test.sh 31 spec/vars-special.test.sh 791 spec/whitespace.test.sh 114 spec/word-eval.test.sh 65 spec/word-split.test.sh 863 spec/xtrace.test.sh 399 spec/ysh-TODO-deprecate.test.sh 159 spec/ysh-assign.test.sh 423 spec/ysh-augmented.test.sh 245 spec/ysh-bin.test.sh 20 spec/ysh-blocks.test.sh 348 spec/ysh-bugs.test.sh 360 spec/ysh-builtin-ctx.test.sh 168 spec/ysh-builtin-error.test.sh 436 spec/ysh-builtin-eval.test.sh 859 spec/ysh-builtin-help.test.sh 124 spec/ysh-builtin-meta.test.sh 353 spec/ysh-builtin-module.test.sh 500 spec/ysh-builtin-private.test.sh 594 spec/ysh-builtin-process.test.sh 85 spec/ysh-builtin-shopt.test.sh 183 spec/ysh-builtins.test.sh 685 spec/ysh-bytecode.test.sh 18 spec/ysh-case.test.sh 245 spec/ysh-closures.test.sh 180 spec/ysh-cmd-lang.test.sh 54 spec/ysh-command-sub.test.sh 147 spec/ysh-completion.test.sh 204 spec/ysh-control-flow.test.sh 182 spec/ysh-convert.test.sh 190 spec/ysh-demo.test.sh 61 spec/ysh-dev.test.sh 163 spec/ysh-dict.test.sh 120 spec/ysh-env.test.sh 309 spec/ysh-expr-arith.test.sh 614 spec/ysh-expr-bool.test.sh 185 spec/ysh-expr-compare.test.sh 427 spec/ysh-expr-sub.test.sh 42 spec/ysh-expr.test.sh 442 spec/ysh-for.test.sh 262 spec/ysh-func-builtin.test.sh 184 spec/ysh-func.test.sh 514 spec/ysh-funcs-external.test.sh 86 spec/ysh-int-float.test.sh 220 spec/ysh-interactive.test.sh 41 spec/ysh-introspect.test.sh 388 spec/ysh-json.test.sh 1,285 spec/ysh-keywords.test.sh 37 spec/ysh-list.test.sh 271 spec/ysh-method-io.test.sh 129 spec/ysh-method-other.test.sh 151 spec/ysh-methods.test.sh 691 spec/ysh-multiline.test.sh 179 spec/ysh-namespaces.test.sh 107 spec/ysh-nul-bytes.test.sh 35 spec/ysh-object.test.sh 337 spec/ysh-options-assign.test.sh 106 spec/ysh-options.test.sh 791 spec/ysh-place.test.sh 136 spec/ysh-printing.test.sh 396 spec/ysh-proc-meta.test.sh 267 spec/ysh-proc.test.sh 865 spec/ysh-prompt.test.sh 147 spec/ysh-purity.test.sh 407 spec/ysh-regex-api.test.sh 939 spec/ysh-regex.test.sh 711 spec/ysh-reserved.test.sh 48 spec/ysh-scope.test.sh 907 spec/ysh-slice-range.test.sh 278 spec/ysh-source.test.sh 29 spec/ysh-special-vars.test.sh 50 spec/ysh-stdlib-args.test.sh 37 spec/ysh-stdlib.test.sh 25 spec/ysh-string.test.sh 559 spec/ysh-tuple.test.sh 28 spec/ysh-unicode.test.sh 184 spec/ysh-usage.test.sh 272 spec/ysh-user-feedback.test.sh 212 spec/ysh-var-sub.test.sh 45 spec/ysh-with-sh.test.sh 221 spec/ysh-word-eval.test.sh 144 spec/ysh-xtrace.test.sh 588 spec/zsh-assoc.test.sh 63 spec/zsh-idioms.test.sh 57 66,966 lines in 212 files
Another suite that tests shells "from the outside". Instead of making explicit assertions, we verify that OSH behaves like bash.
test/gold/abuild.sh 9 test/gold/and-or.sh 27 test/gold/autoconf-backtick.sh 50 test/gold/big-here-doc.sh 1,531 test/gold/case-in-subshell.sh 37 test/gold/char-class.sh 33 test/gold/command-sub-2.sh 12 test/gold/command-sub.sh 39 test/gold/comments.sh 22 test/gold/complex-here-docs.sh 192 test/gold/configure-bug.sh 13 test/gold/de1.sh 24 test/gold/declare.sh 28 test/gold/dollar-sq.sh 42 test/gold/echo-e.sh 36 test/gold/errexit-confusion.sh 139 test/gold/errexit.sh 121 test/gold/export.sh 65 test/gold/glob.sh 26 test/gold/lineno.sh 23 test/gold/nix.sh 32 test/gold/readlink.sh 61 test/gold/readonly.sh 24 test/gold/scope.sh 126 test/gold/strip-op-char-class.sh 6 test/gold/word-eval.sh 64 2,782 lines in 27 files
mycpp generates the big file _gen/bin/oils-for-unix.mycpp.cc. Other programs like Zephyr ASDL and re2c generate other files.
_gen/_tmp/match.re2c-input.h 1,324 _gen/asdl/hnode.asdl.h 173 _gen/bin/oils_for_unix.mycpp-main.cc 20 _gen/bin/oils_for_unix.mycpp.cc 62,027 _gen/bin/text_files.cc 2,251 _gen/core/optview.h 142 _gen/core/runtime.asdl.cc 1,351 _gen/core/runtime.asdl.h 1,051 _gen/core/value.asdl.cc 1,590 _gen/core/value.asdl.h 1,210 _gen/cpp/build_stamp.cc 1 _gen/cpp/build_stamp.h 1 _gen/data_lang/nil8.asdl.cc 262 _gen/data_lang/nil8.asdl.h 227 _gen/display/pretty.asdl.cc 263 _gen/display/pretty.asdl.h 263 _gen/frontend/arg_types.cc 680 _gen/frontend/arg_types.h 905 _gen/frontend/consts.cc 1,909 _gen/frontend/consts.h 58 _gen/frontend/help_meta.cc 536 _gen/frontend/help_meta.h 6 _gen/frontend/id_kind.asdl.cc 939 _gen/frontend/id_kind.asdl.h 482 _gen/frontend/id_kind.asdl_c.h 413 _gen/frontend/match.re2c.h 24,874 _gen/frontend/option.asdl.h 229 _gen/frontend/signal.cc 205 _gen/frontend/signal.h 16 _gen/frontend/syntax.asdl.cc 6,625 _gen/frontend/syntax.asdl.h 5,538 _gen/frontend/types.asdl.h 86 _gen/frontend/types.asdl_c.h 46 _gen/osh/arith_parse.cc 129 _gen/yaks/yaks.asdl.cc 1,228 _gen/yaks/yaks.asdl.h 1,032 _gen/yaks/yaks_main.mycpp-main.cc 20 _gen/yaks/yaks_main.mycpp.cc 4,535 _gen/ysh/grammar_nt.h 76 _gen/ysh/grammar_tables.cc 4,554 127,277 lines in 41 files