Arc is a lightweight programming language crafted in C, designed for simplicity and ease of use. With features like variable assignments, functions, and control flow statements, it provides a clear structure for both beginners and experienced developers. Explore its straightforward REPL for interactive coding or use it for file execution.
Arc is an innovative programming language project meticulously crafted with C, designed for simplicity and reliability. Its primary focus is on establishing a streamlined frontend pipeline paired with an intuitive interpreter capable of evaluating expressions and facilitating basic variable assignments.
Arc provides a robust set of features tailored for both novice and experienced programmers:
VAR keyword.FN and RETURN keywords.IF, THEN, ELIF, and ELSE for logic branching.WHILE loops for the repetition of code segments, along with control flow statements like BREAK and CONTINUE for granular loop control.+, -, *, /, ^), comparison (==, !=, <, >, <=, >=), and logical (AND, OR) operations.Consider the following example demonstrating file execution in Arc. Create a file named script.arc:
VAR x = 0
WHILE x < 5 THEN
VAR x = x + 1
END
IF x == 5 THEN
print("Five")
ELSE
print("Not Five")
END
Executing this file with ./arc script.arc will produce:
Five
Future enhancements to Arc aim to include:
NOT operatorFor extensive documentation including getting started guides, language reference, and architecture details, refer to the contents in the docs/ folder.
No comments yet.
Sign in to be the first to comment.