last day (276 days later) » 

room topic changed to Noxan (Golfing language): The Noxan golfing language (was called P1A2E817), because the old one was tucked away github.com/TheSecondComing123/Noxan (no tags)
room topic changed to Noxan (Golfing language): The Noxan golfing language (was called P1A2E817) github.com/TheSecondComing123/Noxan (no tags)
room topic changed to Noxan (Golfing language): The Noxan golfing language (was called P1A2E817) github.com/TheSecondComing123/Noxan [golfing-language] [language] [noxan]
 
2:20 PM
o/
 
2:53 PM
hi
 
hi
@mathcat do you know how to fix my pycharm syntax highlighting? (ctrl-enter doesn't work with builtin modules either)
 
Hmm no, I don't know how to use pycharm but one sec
I have an idea
 
@mathcat what is it?
 
one sec
 
3:16 PM
@BgilMidol did you disable it by mistake?
 
no, i deleted .idea and now it's not working
 
I'll add .idea
 
thx
 
actually i think its deleted for you locally @BgilMidol
 
@PyGamer0 it seems the pycharm is synced with the github
 
3:23 PM
is .idea locally there?
like i mean check in file explorer
 
one sec
 
@PyGamer0 yes
 
strange
screenshot?
 
lemme try removing it from .gitignore
ctrl-enter still not working
 
@BgilMidol thats not going to work i think
did you change your python interpreter recently?
 
3:29 PM
one sec
fixed?
strange, i can't change the python version
 
one minute
 
ok, 3.8 works now, but no syntax highlighting
 
almost done
 
@mathcat done?
 
I think now it should work
yes, you have to merge I think
Is it working?
 
3:43 PM
nope
 
can you see .venv?
 
nope
 
did you pull?
 
yes
 
I think because of the .idea it is not synced
 
3:47 PM
cant find colors & fonts
 
Delete the repo and clone it again
 
how to clone?
 
git clone repo
 
git clone <link>
 
ninja'd
 
3:49 PM
argh bad internet
ARGH
@BgilMidol you are on windows right?
 
windows 10
 
then open command prompt
 
and type git
 
@PyGamer0 is that what you wanted to say :P?
 
Yes lol
 
3:50 PM
next?
 
does it work?
 
yes
 
ok now cd into your project directory (where you kepp all your stuff)
 
I have PycharmProjects and Poxuncla
 
ok now rmdir Poxuncla
 
3:52 PM
are you sure this will work?
 
and git clone https://github.com/TheSecondComing123/Noxan
@BgilMidol if you are trying to delete and clone then yes
 
what if i just git clone?
 
yeah you can
go ahead
 
it worked!!!!
 
nice
do you have syntax highlighting now?
 
3:54 PM
loading...
autocomplete working
indexing...
almost done
yesssss!!
<<<<<<< HEAD
def tokenize(text: str) -> List[Token]:
=======
def tokenize(text: str) -> list[Token]:
    """Main tokenize function"""
>>>>>>> 0ececbb875227f04dd5030c7b5f735db144a5977<<<<<<< HEAD
def tokenize(text: str) -> List[Token]:
=======
def tokenize(text: str) -> list[Token]:
    """Main tokenize function"""
>>>>>>> 0ececbb875227f04dd5030c7b5f735db144a5977
um?
 
mergo erroro
merge errors
like something happened while merging
 
yes
choose
 
yos
ok i have go to
o/
 
replace from (<<< HEAD to >>> )
def tokenize(text: str) -> List[Token]:
 
brb
 
4:02 PM
or wait I can do it
 
done in #11
 
merged
 
compiler or interpreter?
d'you already know?
 
4:17 PM
brb
compiler
 
so last parser thing
 
what is it?
 
The parser will parse a string (tokenized) like 1 2+ like [+, 1, 2]
maybe it's better to parse it like [[+, [1, 2]]]
so that every lists first element is the function
and the second element is a list of arguments
or wait nvm
it'll be 100 times harder to compile then
 
wait
 
just forget everything I said
 
4:25 PM
the parser.py also has merging errors (locally)
 
did you pull?
 
yeah
 
you have to do git pull again
oh wait
 
@mathcat i did not git pull I did merge the pull request
 
@BgilMidol git pull pulls the global repo to your local remote folder
try that
 
4:28 PM
still merging error in parser.py
 
strange
screenshot?
 
def parse(token_list: list[Token]) -> list[Token]:
    """Main parse function
<<<<<<< HEAD
    Args:
        token_list (list[Token]): Tokenized string, a list of Token elements
=======

    Args:
        token_list (list[Token]): Tokenized string, a list of Token elements

>>>>>>> 0ececbb875227f04dd5030c7b5f735db144a5977
    Returns:
        list[Token]: Return parsed list, grouped Token elements
    """
 
that's the error I fixeg
global repo is updated
 
try fixing it again
 
it's the local one with the problem
 
4:31 PM
error: Your local changes to the following files would be overwritten by merge:
        tokenizer.py
Please commit your changes or stash them before you merge.
Aborting
Updating ab4037e..c423a72
(I git pulled)
 
have you done any important local changes
 
I changed List[...] to list[...]
 
then
do git checkout .
and then pull
 
worked
 
good
but now
does list[...] cause any errors in pycharm?
 
4:34 PM
i'm using 3.9
(now)
 
@mathcat this discarded you're local uncommited changes
@BgilMidol so does it cause errors?
 
good
now compile
 
make a file plus function
 
4:38 PM
example?
 
compiler.py def compile
 
now compile:
receives a list of tokens
 
from the parser or the tokenizer?
 
parser
 
4:41 PM
um
compile is a builtin function
 
ok then compile_code maye
 
i'll stick with compile(tokens)
 
def compile:
Loop through list:
  Start at the first list
     Is it a nested list?
       Then run compile on the list.
       Dissolve the nested list by the compiled result
     No?:
        The Function is the first element.
        It's arguments are the rest.
        Run the function with it's arguments.
        Dissolve list by the returned result.
ups
 
what does dissolve the ... by the ... mean?
 
Dissolving [[+, 1, 2]] by the function output means replacing the list with the output. Output would be [3]
 
 
1 hour later…
6:13 PM
back
@mathcat example?
 
6:26 PM
@mathcat example compiler? i cant figure out the recursive part
 
6:39 PM
one sec
I have another exam tomorrow
I think all my teachers think the start of the semester is a good time to come up with exams
 
7:23 PM
oh forgot
 
@mathcat forgot what?
 
to write an example
@BgilMidol wait
just call compile on that list
 
i'll try enumerate
 
yeah
If you are stuck,
then push your code so that I can have a look at it
 
what should it return?
 
7:38 PM
good question
return the list
the one you looped through
 
7:58 PM
@mathcat feedback?
 
made a pr
 
@mathcat merged
 
ok
nice
 
@mathcat what should we do next?
 
Igtg
o/
 
 
3 hours later…
10:59 PM
Excellent. I can see this on the first page now
 
11:29 PM
@lyxal ok
 

  last day (276 days later) »