wmww / pinecone Goto Github PK
View Code? Open in Web Editor NEWAn unmaintained programming language
Home Page: http://pinecone-lang.herokuapp.com/
License: MIT License
An unmaintained programming language
Home Page: http://pinecone-lang.herokuapp.com/
License: MIT License
Cant it run on Windows? It seems to work only on Linux
A friend of mine is making a lib made in Pinecone for a chat service. So will Pinecone ever have support to even attempt to make that?
@william01110111 I am a C# developer (and I love this programming language). I have started developing Pinecone in C# for Windows compatibility (and you currently don't have this), with a compiler... so if I could have some sort of specification document I will happily finish it and create a pull request with the needed subfolders, code and executables (yes, so you can do stuff like C:\> pinecone myprogram.pn
)
.
Hi,
two small issues on Windows with gcc (gcc version 6.3.0 (GCC)). Both report missing headers which are typically not found on windows. I haven't looked at the implementation but I guess it is possible to work around these kind of issues. Not sure if you want support windows as platform at all.
[ome/src/github/Pinecone]>make
g++ -Wall -std=c++11 -O2 src/.cpp src/Actions/.cpp -o pinecone
src/msclStringFuncs.cpp:8:21: fatal error: termcap.h: No such file or directory
^
compilation terminated.
make: *** [Makefile:6: build] Error 1
c:\home\src\github\Pinecone>make
g++ -Wall -std=c++11 -O2 src/.cpp src/Actions/.cpp -o pinecone
src/msclStringFuncs.cpp:5:54: fatal error: sys/ioctl.h: No such file or directory
#include <sys/ioctl.h> // for terminal size detection
^
compilation terminated.
src/Actions/FunctionAction.cpp: In member function 'virtual void FunctionAction::addToProg(Action, Action, CppProgram*)'
:
src/Actions/FunctionAction.cpp:100:36: error: cast from 'ActionData*' to 'long int' loses precision [-fpermissive]
name="^func_"+to_string((long)&*action);
^~~~~~
make: *** [Makefile:6: build] Error 1
Hi just tried to compile pinecone and i got this error with GCC (5.1).
src/Actions/FunctionAction.cpp:104:31: error: cast from 'ActionData*' to 'long int' loses precision [-fpermissive] name+="_"+to_string((long)&*action); ^
Thanks.
Pinecone does not currently support linking with C/C++ libraries. One example is ncurses
, which provides screen manipulation support. If we could use that, we could rewrite snake
yet again, adding yet more โญgameplay featuresโญ.
I understand that this is a very complicated feature in an interpreted language (heck, Python hasn't got it fully figured out), but it would be very nice not to have to constantly re-invent the wheel. :)
I saw your code and I want to ask u))) Where u learnt C++?
Pinecone is greate language, but can u make an ex. .bat: pinecone filename and it will run, I can help
When I finished compiling the compiler,and wanted to run it,it gave me a SIGILL like this:
Hello World!
zsh: illegal hardware instruction ./pinecone examples/hello_world.pn
Why does it happen?
I've seen a previous commit that allowed command line argument support, but how do I use these arguments in a program?
The link in the bottom of 5_transpiling_to_cpp.md is broken, it appears you are missing a (
before 6_temporary_hacks.md
.
On line 30 of src/ErrorHandler.cpp there's statement that looks like this:
case INTERNAL_ERROR: return "INTERNAL ERRER"; break;
Shouldn't this return "INTERNAL ERROR"
?
Hi there,
I know this project is abandoned, but I'm intrigued about the name. Why Pinecone? What is its meaning/significance for this language?
Thanks!
How does one make a class? Using data structures like:
myClass :: {
name: ""
myFunc :: {} -> {String} : (
print: "Hi, " + name
)
Or by using left input?
myClass: ""
myFunc :: {myClass}.{} -> {String} : (
print: "Hi, " + name
)
microbit
is a project by the BBC, which I think is very cool. I want to make a pinecone
interface for the microbit
. It would turn the code into a .hex
file, the that would then be saved as a file on the computer.
I saw your blog post which I loved, I am also trying to create my PL in python/js, I have seen your lexer and parser source code, but where is the interpreters own.
What about adding pinecone language support for GitHub
hi
i'm working on Pace Runtime (Pacer), which runs Pace Assembly on a virtual machine.
I've created the assembly language and virtual machine and now i'm working on perfomance and bug fixing, And then wanna write a compiler that turns a C-like prgoram to this assembly, but I need help.
I don't know how to get start to write a compiler. can you help me?
this a hello world program in my assembly:
%define assembly_title "Hello"
... ; some definations for assembly manifest
%include "Pacer.inc" ;include Pacer OpCodes
pace_binary_table:
dep "PSTDLib", "", 0, 1 ; depends on PSTDLib from any author higher than version 0.1
fun "main", _hmain, _hmain_end - _hmain ;name, offset, size
var 0x00000000 ;defines a variable with id 0x00000000
pace_binary_table_close
_hmain EQU $
_read t_string, "Hello, ", 0 ;read a null-terminated string
_push
_read t_string, "World!", 0
_push
_add ;adds two last objects in stack togother
_save 0 ;var 0x0000000 = "Hello, " + "World!"
_load 0 ;read from a variable
_push
_calle 0, "println" println(var 0x000000)
_newobj t_void
_ret ;return void
_hmain_end EQU $
it assembles with nasm, and output runs on top of my PRT (Pace Runtime).
if i implement this in the C-like language, may lok like this:
#name "hello"
...
#include "PSTDLib"
extern 0, println(1) // println from 0st include with 1 argument(s)
var x; // Pacer has Run-Time Typing for variables
main(0) {
x = "Hello, " + "World!";
println(x);
return void;
}
I'll release a beta version with sources on github soon.
can you target my runtime with your Pinecone?
I typed in make and it said not found then I tried again after installing make via 'pip install make' and it still didn't work.
I think Pinecone looks like an interesting language. If I fork it, would you be willing to put a link to my fork in the README?
I typed in make and it said not found then I tried again after installing make via 'pip install make' and it still didn't work.
i have compiled pinecone with the make file and i got this error for every file i test.
$ ./pinecone ./examples/hello_world.pn
error in './examples/hello_world.pn' on line 1:
' invalid token '
print: "Hello World!"
^
error in './examples/hello_world.pn' on line 2:
' invalid token '
^
program not executed due to errors
I'm running on WSL Ubuntu 16.04 64-bit
$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
$ uname -a
Linux DESKTOP-53JBK0N 4.4.0-17134-Microsoft #1-Microsoft Tue Apr 10 18:04:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
I walked through that and that really helped me get started making my own interpreted language in JavaScript! ๐
Hi, I will like to contribute to Pinecode. Even though I am a beginner in creating a language, I can help. Please provide enough documentation to the language internals to make it practical for me to contribute @wmww
Current Description is
A brand new, easy to learn, general purpose, multi-paradigm, high performence programming language
This should be spelled performance. If you were aware or did it on purpose, I apologize but figured I should let you know.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.