GitHub - VxidDev/Arc: A simple, interpreted programming language written in C. · GitHub
/" data-turbo-transient="true" />
Skip to content
Search or jump to...
Search code, repositories, users, issues, pull requests...
-->
Search
Clear
Search syntax tips
Provide feedback
--><br>We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
-->
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
VxidDev
Arc
Public
Notifications<br>You must be signed in to change notification settings
Fork
Star
main
BranchesTags
Go to file
CodeOpen more actions menu
Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit
History<br>64 Commits<br>64 Commits
docs
docs
include
include
src
src
.gitignore
.gitignore
LICENSE
LICENSE
README.md
README.md
makefile
makefile
math.arc
math.arc
View all files
Repository files navigation
Arc
Arc is a small programming language project written in C. It focuses on building a clean and reliable frontend pipeline, along with a simple interpreter for evaluating expressions and basic variable assignments.
Documentation
For detailed information, please refer to the documentation in the docs/ folder:
Getting Started
Language Reference
Architecture
Features
Arc is a C-based programming language with a focus on a clean frontend pipeline and a simple interpreter. Key implemented features include:
Variables and Assignment: Declare and update variables using the VAR keyword.
Functions: Define custom functions with parameters and return values using the FN and RETURN keywords.
Native Functions: Support for built-in functions implemented in C for core functionalities like I/O, type checking, and error handling.
Control Flow:
Conditional Statements: IF, THEN, ELIF, ELSE for branching logic.
Loops: WHILE loops for repetitive execution.
Control Flow Statements : BREAK and CONTINUE for loop control.
Operators: Full support for arithmetic (+, -, *, /, ^), comparison (==, !=, , >, , >=), and logical (AND, OR) operations.
Data Types: Supports numbers, strings, and booleans.
Error Handling: Robust error reporting with position tracking.
Read-Eval-Print Loop (REPL): An interactive environment for executing Arc code directly.
Example
File Execution
Create a file named script.arc:
VAR x = 0
WHILE x
Running this file (./arc script.arc) will output:
Five
Roadmap
Logical NOT operator
Scoped environments
Bytecode virtual machine (long-term goal)
License
GPL-3.0
About
A simple, interpreted programming language written in C.
Topics
programming-language
performance
interpreter
Resources
Readme
License
GPL-3.0 license
Uh oh!
There was an error while loading. Please reload this page.
Activity
Stars
stars
Watchers
watching
Forks
forks
Report repository
Releases
No releases published
Packages
Uh oh!
There was an error while loading. Please reload this page.
Contributors
Uh oh!
There was an error while loading. Please reload this page.
Languages
97.6%
Arc<br>1.4%
Makefile<br>1.0%
You can’t perform that action at this time.