« first day (72 days earlier)      last day (479 days later) » 

5:18 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ can you test of cheddar installation script works on it :3
 
bash <(curl -fSsL cheddar.vihan.org/install)
 
any specific dir I should put this in?
 
run that and no
NOOOOO
 
5:19 PM
wait
@Upgoat ....that is os x.
 
C:\Users\Conor O'Brien\Documents\Programming\Cheddar
λ bash <(curl -fSsL cheddar.vihan.org/install)
The system cannot find the file specified.
 
@EᴀsᴛᴇʀʟʏIʀᴋ ?
 
@Upgoat that only works for unix.
Windows uses a completely different directory/file system.
 
I have an emulator
 
5:20 PM
Oh, i thought conor had unix emulator
@CᴏɴᴏʀO'Bʀɪᴇɴ try bash.exe and curl.exe
 
And try the -c parameter to bash.exe.
 
idk how to windows
 
if I enter bash exe and type it in it starts
/dev/fd/63: line 30: sudo: command not found
Cleaning remains...
/dev/fd/63: line 33: sudo: command not found
 
Try the git shell? :/
 
last three lines
 
5:22 PM
@Upgoat .....
did you re-add the sudo?
 
Um wat
 
@Upgoat Um welt :P
 
@zʏᴀʙiɴ101 Next time I'm flagging that. It's really annoying and pretty much spam.
 
Try npm install -g sudo :P
 
5:23 PM
should I seriously do that, or what
 
@EᴀsᴛᴇʀʟʏIʀᴋ Deleted message.
 
that's fine
still flagging next time
 
And added you to the ignore list.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ no.
 
how do I use cheddar I have installed it
 
5:24 PM
@zʏᴀʙiɴ101 yay!!!! seriously yay.
@CᴏɴᴏʀO'Bʀɪᴇɴ type cheddar
 
I wish there was just a way to tell Python "I don't give a flying fuck about encoding just output the string's bytes"
 
@quartata solution: use node, it lets you do that
 
5:26 PM
@Upgoat I want to use cheddar but can't I tri for thrite minut
 
@EᴀsᴛᴇʀʟʏIʀᴋ you should just ignore if it's that annoying to you. Flagging will trigger entire SE 10k+ & mods, just for a ....
 
yes
but I've asked him to stop multiple times
 
@CᴏɴᴏʀO'Bʀɪᴇɴ tri tyep bash.exe -c /usr/local/bin/cheddar
 
C:\Users\Conor O'Brien\Documents\Programming\Cheddar
λ bash.exe -c /usr/local/bin/cheddar
/usr/bin/bash: /usr/local/bin/cheddar: No such file or directory
 
maybe install with --method=alias if that doesn"t work
 
5:28 PM
On windows, remember?
 
Maybe add .exe at the end?
 
This isn't a perfect unix thing.
 
I don't have a local bin
 
@Upgoat ... that doesn't exist
and it never will
You have to re-write the entire script for windows.
 
5:29 PM
Install cygwin maybe that does things
 
@EᴀsᴛᴇʀʟʏIʀᴋ ;_; @BillGates y u do dis
 
i tried this a couple weeks ago
 
I just don't have the correct path
 
5:29 PM
Does windows have equivilent of .bashrc?
 
is there a manual install?
 
yes? and yes
 
@Upgoat I have no idea
I'll look at the manual install and see if there's a way to do it on windows
 
Ok. Clone git from the github
 
thanks
there were too many githubs >_>
is that it?
 
then go to the dir and run npm installl && ./node_modules/.bin/grunt install --method=alias --rc=<PATH TO YOUR BASH RC GOES HERE> --minify
 
@Upgoat Did you know, that people never serve cheddar in triangular form?
 
I'm trying to do an install for windows. Windows doesn't have bash rc
 
@CᴏɴᴏʀO'Bʀɪᴇɴ it will if you use bash. But use bash_profile instead, that should be more native.
 
5:33 PM
headdesk
 
@Bálint say that to the hunk in my fridge please
 
> I'm trying to do an install for windows.
 
@Upgoat it's not going to work no matter what you do.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you have an emulator correct?
 
5:34 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ howtogeek.com/249966/…
 
20 secs ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
> I'm trying to do an install for windows.
 
that emulator should be able to create and read from a bash rc
 
without an emulator
 
@Upgoat the emularot isn't perfect bash.
 
So other windows people can use it
 
@EᴀsᴛᴇʀʟʏIʀᴋ you dont need bash in this method
 
We need a batch script to do this. Until then, only *nix testing.
 
@EᴀsᴛᴇʀʟʏIʀᴋ olay, then, halp how maek batch script
 
I'm trying to do that
5 mins ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
I'll look at the manual install and see if there's a way to do it on windows
 
@Upgoat I'll help.
But TimmyD, the main Windows coder here pretty much said it's not going to work.
May 20 at 14:39, by TimmyD
Ah ... hah. You're funny.
 
5:35 PM
@Upgoat Explain what ./node_modules/.bin/grunt install --method=alias --rc=<PATH TO YOUR BASH RC GOES HERE> --minify does?
 
May 20 at 14:40, by TimmyD
There's no guaranteed git or curl or anything remotely like that on Windows.
 
you can force add git to the path
which git usually does itself
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Runs grunt (the first filepath) install with the flag method = alias and the rc is the path to the rc.
 
clear as mud
 
basically grunt install with method as alias
 
5:36 PM
What does it do, not how please
 
It builds cheddar.
That is what grunt does.
 
nvm I'll just google it
 
@Dennis can you move all of this conversation to the cheddar room?
 
from here:
19 mins ago, by Upgoat
@CᴏɴᴏʀO'Bʀɪᴇɴ can you test of cheddar installation script works on it :3
 
5:39 PM

 Cheddar

For discussion of the design and development of the Cheddar pr...
 
120 messages moved from The Nineteenth Byte
 
@CᴏɴᴏʀO'Bʀɪᴇɴ gl with that.
 
@Upgoat ... you never fixed the script on OS X either.
ಠ_ಠ
 
6:08 PM
@EᴀsᴛᴇʀʟʏIʀᴋ yeah o did?
what's the error for you
 
same as last time
brb copying
readlink: illegal option -- f
usage: readlink [-n] [file ...]
./bin/install: line 14: : command not found
@Upgoat
 
Wat
Check if realpath command exists
 
 
1 hour later…
7:35 PM
@EᴀsᴛᴇʀʟʏIʀᴋ have you installed xcode dev tools ._.
if not, just do brew install coreutils
hai
 
hai
so what do I need to do again?
 
cheddar installation script
lemme copy the stuff
 
in The Nineteenth Byte, 2 mins ago, by Upgoat
All it needs to do is ensure git, and node, are installed, if not install them. Then clone cheddar, do a npm install then a ./node_modules/.bin/grunt build, and then write a script to install
 
1. Check if git, and node are installed, if not, install them
2. Clone cheddar
3. npm install
4. ./node_modules/.bin/grunt build
5. Somehow execute `./dist/cli/cheddar.js` with node when the `cheddar` command is run
 
7:54 PM
I don't think one can isntall git with pure batch
if I have node, but not grunt, what would I need to do to install it?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ D: really?
 
windows has no curl
 
@CᴏɴᴏʀO'Bʀɪᴇɴ npm install will install grunt
 
I think you might have to build it from source them
 
7:58 PM
build what?
@Upgoat
 
git
 
idk, maybe its better to create windows installer
 
... that's what I'm doing?
 
no, like this kind of installer:
 
8:05 PM
oh
Well i have this so far:
@ECHO OFF

REM Cheddar install script for windows
REM Author: Conor O'Brien

SET SILENT=^>nul 2^>^&1

WHERE git %SILENT%

IF %ERRORLEVEL% NEQ 0 (
	ECHO You appear not to have git installed. Please proceed to the following link:
	ECHO   git-scm.com/download/win
	GOTO EOF
)

WHERE npm %SILENT%
IF %ERRORLEVEL% NEQ 0 (
	ECHO You appear not to have npm installed. Please proceed to the following link:
	ECHO   nodejs.org/en
	GOTO EOF
)

git clone github.com/cheddar-lang/Cheddar.git
It checks if git, npm are installed, then prompts the user to install them theirselves :P
 
:D cool
 
I've only gotten to the npm install bit tho
I'm also going to check if the thing is already installed
 
8:39 PM
@Upgoat Okay, I think I have stesp 1-4 done
 
\o/\o/\o/ \o/
I'm trying to figure out how to ssh key with travis ._.
 
who's travis, and why are you sharing a key with them
 
he's my good friend
 
9:11 PM
@Upgoat Yes?
Yeah.
 
:/ just run brew install coreutils, idk why that's not wokring, I'll fix in next push
okay, now you can just add installation scripts to the installation repo and it should automatically deploy to the GH pages
 
9:53 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ do you want to add your batch script to the cheddar-lang/install repo under windows/cheddar so it goes under your name?
 
sure one sec
done
 
 
2 hours later…
11:30 PM
hey @Upgoat can you help with some regex?
 
I am decently literate in regex
 
so I'm trying to match func somewords followed by unlimited new lines indented by four spaces
 
@Quill yeah?
/func somewords\n+ {4}/
 
This is what I have so far: func ([a-zA-Z]+)((\n[ ]{4}((?:[^\r\n]|\r(?!\n))+))+)
 
@Quill ._. you should probably wrap that in a define block so it's clearer
 
11:34 PM
wat
 
(?(DEFINE)
(?<MATCH_FUNCTION>func (?&identifier) (?&block))

(?<identifier>[a-zA-Z]+)

(?<block>
(
(?&indent)
(?&char)+
)
)

(?<indent>[ ]{4})
(?<char>
[^\r\n] # Not carriage return or newline
\r(?!\n) # Carriage return not followed by newline
)
)
^
then you can use (?&MATCH_FUNCTION) to match it
 
(?(DEFINE)
  (?<block>((?&indent)(?&chars))+)
  (?<indent>\n {4})
  (?<chars>[^\r\n]+)
  (?<declaration>func ([a-zA-Z]+))
)
(?&declaration)(?&block)
how come that doesn't work
 
screw it, regex101: regex101.com/r/xT0zU1/1
@Quill do you have x flag?
and make sure you're using [ ] for spaces
 
didn't have any comments
 
but for free whitespace you need x flag
 
11:50 PM
okay, so how do I extract matches out of this now?
 
just as regular named matches
 
how do I store this in the code now?
 
@Quill what language are you using?
 
beautiful es6 with es2016 plugin
 
oh :| this won't work on JS until I finish my PCRE-Parser plugin >_>
 
though why are you using regex to parse code, seems potentially very problematic
 

« first day (72 days earlier)      last day (479 days later) »