cangjie-basic-programming-concepts

Explain Cangjie keywords, identifiers, variables, types, scope, and control flow.

4|1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/JunjieChen0/NJUST --skill cangjie-basic-programming-concepts-junjiechen0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-basic-programming-concepts
Source: https://github.com/JunjieChen0/NJUST/tree/main/.njust-ai/skills/cangjie-basic-concepts
Command: npx skills add https://github.com/JunjieChen0/NJUST --skill cangjie-basic-programming-concepts-junjiechen0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Learners and developers who want to start using the Cangjie programming language need a concise, structured primer on its core concepts, syntax, and common workflows.

Core Features & Use Cases

  • Defines language keywords, allowed identifiers, and program structure.
  • Explains variable definitions, including let, var, and const semantics, and type categories (value vs reference).
  • Describes control flow constructs (if, while, for-in, match), pattern matching, and function definitions.
  • Provides guidance on basic project workflows such as creating, building, and running a Cangjie project using cjpm.

Quick Start

Start with a concise primer on the essential Cangjie concepts to begin writing simple programs.

Frequently Asked Questions about cangjie-basic-programming-concepts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the core syntax rules and keywords in the Cangjie programming language?

The Cangjie programming language defines specific keywords, allowed identifiers, and program structures to establish code logic. It provides a structured primer detailing these rules alongside data types and scope to guide practical coding tasks.

How do I define variables and distinguish between value and reference types in Cangjie?

In Cangjie, variable definitions use let, var, and const semantics to handle mutability. The language categorizes data into value and reference types, clarifying memory allocation and assignment behaviors for practical programming.

How do I use control flow constructs and pattern matching in Cangjie?

Cangjie supports control flow constructs including if, while, for-in, and match expressions. These elements enable conditional logic execution and structural pattern matching to manage program execution paths effectively.

How do I create, build, and run a Cangjie project using cjpm?

Building a Cangjie project involves using the cjpm tool to manage basic project workflows. This process covers creating project structures, compiling source code, and executing the generated program to verify functionality.

Can experienced developers use Cangjie concepts for structured primers on function syntax?

Cangjie concepts are applicable to both new learners and seasoned developers. It provides a structured primer on function syntax, language rules, and scope, ensuring experienced programmers can quickly grasp the language mechanics.

What is the difference between let, var, and const semantics in Cangjie variable definitions?

Cangjie variable definitions use let for immutable bindings, var for mutable variables, and const for compile-time constants. These semantics determine how variables are accessed and modified throughout program execution.