-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
257 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: ISC | ||
// | ||
// Copyright (c) 2023 Johnathan C Maudlin <[email protected]> | ||
|
||
#ifndef PLOY_EVALUATOR_H | ||
#define PLOY_EVALUATOR_H | ||
#pragma once | ||
|
||
#include "type.h" | ||
|
||
Object const *evaluator(Object const *object); | ||
|
||
#endif // PLOY_EVALUATOR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: ISC | ||
// | ||
// Copyright (c) 2023 Johnathan C Maudlin <[email protected]> | ||
|
||
#ifndef PLOY_PRINTER_H | ||
#define PLOY_PRINTER_H | ||
#pragma once | ||
|
||
#include "type.h" | ||
|
||
void printer(Object const *object); | ||
|
||
#endif // PLOY_PRINTER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: ISC | ||
// | ||
// Copyright (c) 2023 Johnathan C Maudlin <[email protected]> | ||
|
||
#ifndef PLOY_READER_H | ||
#define PLOY_READER_H | ||
#pragma once | ||
|
||
#include "type.h" | ||
|
||
Object const *reader(char const *input); | ||
|
||
#endif // PLOY_READER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
; This is a comment | ||
# This is also a comment | ||
|
||
(define greeting "Hello, world!") | ||
|
||
(define greet (lambda (message) | ||
(print message) | ||
)) | ||
|
||
(greet greeting) | ||
|
||
(print (format "The answer is {}." (+ 40 2))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: ISC | ||
// | ||
// Copyright (c) 2023 Johnathan C Maudlin <[email protected]> | ||
|
||
#include <stdlib.h> | ||
|
||
#include <gc/gc.h> | ||
|
||
#include <ploy/core.h> | ||
|
||
Object const * | ||
evaluator(Object const *object) | ||
{ | ||
return object; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.