fpy
Fpy: an advanced sequencing language for F-Prime
파일 탐색기
- security-pack.yml
- excludes.txt
- expect.txt
- patterns.txt
- config.yml
- RefTopologyAppDictionary.xml
- codeql-security-scan.yml
- fprime-gds-tests.yml
- publish.yml
- spelling.yml
- pull_request_template.md
- time.fpy
- __init__.py
- assembler.py
- directives.py
- grammar.lark
- SPEC.md
- __init__.py
- codegen_fpybc.py
- codegen_llvm.py
- compiler.py
- desugaring.py
- dictionary.py
- error.py
- grammar.lark
- harness.py
- imports.py
- ir.py
- macros.py
- main.py
- PASSES.md
- semantics.py
- SPEC.md
- state.py
- symbols.py
- syntax.py
- test_helpers.py
- types.py
- visitors.py
- wasm_host.py
- check_simple.fpy
- check_simple.fpybc
- cmd_handled.fpy
- cmd_handled.fpybc
- cmd_unhandled.fpy
- cmd_unhandled.fpybc
- const_fold.fpy
- const_fold.fpybc
- empty.fpy
- empty.fpybc
- exit_success.fpy
- exit_success.fpybc
- func_unused.fpy
- func_unused.fpybc
- func_used.fpy
- func_used.fpybc
- if_else.fpy
- if_else.fpybc
- if_simple.fpy
- if_simple.fpybc
- var_bool.fpy
- var_bool.fpybc
- var_f32.fpy
- var_f32.fpybc
- var_reassign.fpy
- var_reassign.fpybc
- var_u32.fpy
- var_u32.fpybc
- while_simple.fpy
- while_simple.fpybc
- write_to_port.fpy
- write_to_port.fpybc
- RefTopologyDictionary.json
- test_anon_exprs.py
- test_arithmetic.py
- test_assembler.py
- test_assert.py
- test_aug_assign.py
- test_boolean_logic.py
- test_check.py
- test_commands.py
- test_comparisons.py
- test_compiler_config.py
- test_control_flow.py
- test_dictionary.py
- test_functions.py
- test_golden.py
- test_imports.py
- test_integration.py
- test_logging.py
- test_main.py
- test_parameters.py
- test_parsing.py
- test_rng.py
- test_seq_calling.py
- test_sequence_metadata.py
- test_serialization.py
- test_telemetry.py
- test_time_seqs.py
- test_types_and_constructors.py
- test_types_visitors.py
- test_variables.py
- test_warnings.py
- test_wasm.py
- test_write_to_port.py
- README.md
- wasm-sequencer-fixes.patch
- CMakeLists.txt
- WasmSequencerTester.cpp
- WasmSequencerTester.fpp
- WasmSequencerTester.hpp
- CMakeLists.txt
- settings.ini
- WasmSeqHarnessMain.cpp
- CMakeLists.txt
- FpyHarnessMain.cpp
- FpySequencerTester.cpp
- FpySequencerTester.fpp
- FpySequencerTester.hpp
- Harness.cpp
- Harness.hpp
- Json.cpp
- Json.hpp
- conftest.py
- fprime
- fprime-wasm
- .gitignore
- .gitmodules
- .pre-commit-config.yaml
- CLAUDE.md
- CMakeLists.txt
- fpy_logo.png
- LICENSE
- pyproject.toml
- README.md
- SEQ_ARGS.md
- settings.ini
- setup.py
- SPEC.md
- uv.lock
- VERSIONING.md
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
cargo build
설명 보기 ▼
cargo build
Compile a local package and all of its dependencies.
cargo {{[b|build]}}
Build the package or packages defined by the `Cargo.toml` manifest file in the local path:
cargo {{[b|build]}} {{[-r|--release]}}
Build artifacts in release mode, with optimizations:
cargo {{[b|build]}} --locked
Require that `Cargo.lock` is up to date:
elif
설명 보기 ▼
elif
이 쉘 키워드는 `if`와 `else`와 함께 사용되어 코드 분기를 정의.
tldr if
`if` 명령어 문서 보기:
git clone
설명 보기 ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
git commit
설명 보기 ▼
git commit
Commit files to the repository.
git commit
Open an editor to write a message and commit staged files to the repository:
git commit {{[-m|--message]}} "{{message}}"
Commit staged files to the repository with the specified message:
git commit {{[-F|--file]}} {{path/to/commit_message_file}}
Commit staged files with a message read from a file:
git submodule
설명 보기 ▼
git submodule
Inspect, update, and manage submodules.
git submodule
View existing submodules and the checked-out commit for each one:
git submodule update --init --recursive
Install a repository's submodules (listed in `.gitmodules`):
git submodule add {{repository_url}}
Add a Git repository as a submodule of the current one:
pip install
설명 보기 ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
pytest
설명 보기 ▼
pytest
Python 테스트 실행.
더 많은 정보: <https://docs.pytest.org/en/latest/how-to/usage.html>.
pytest {{path/to/test_file1.py path/to/test_file2.py ...}}
특정 파일에서 테스트 실행:
pytest -k {{expression}}
특정 [k]eyword 표현식과 일치하는 테스트 실행:
pytest {{[-x|--exitfirst]}}
테스트가 실패하거나 오류가 발생하면 즉시 종료:
rustup update
설명 보기 ▼
rustup update
Update Rust toolchains and `rustup` itself (if not installed using a package manager).
rustup update
Update all installed toolchains and `rustup`:
rustup update {{toolchain}}
Install or update a specific toolchain (see `rustup help toolchain` for more information):
timeout
설명 보기 ▼
timeout
명령을 일정 시간 제한 내에서 실행.
더 많은 정보: <https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html>.
timeout 3s sleep 10
`sleep 10`을 실행하고 3초 후 종료:
timeout {{[-s|--signal]}} {{INT|HUP|KILL|...}} {{5s}} {{sleep 10}}
시간 제한이 만료되면 명령에 [s]ignal을 전송 (`TERM`이 기본, 모든 신호 목록은 `kill -l`):
timeout {{[-v|--verbose]}} {{0.5s|1m|1h|1d|...}} {{command}}
시간 초과 시 전송된 신호를 `stderr`에 [v]erbose 출력으로 표시:
uv run
설명 보기 ▼
uv run
Run a command or script in the project environment.
uv run {{path/to/script.py}}
Run a Python script:
uv run {{[-m|--module]}} {{module_name}}
Run a Python module:
uv run {{[-w|--with]}} {{package}} {{command}}
Run a command with additional packages installed temporarily:
uv sync
설명 보기 ▼
uv sync
Update the project's environment to match the lockfile.
uv sync
Sync the project environment with the lockfile:
uv sync --all-extras
Sync and include all optional dependencies:
uv sync --extra {{extra_name}}
Sync with specific optional dependencies:
