Browser collab2

perfect!

It’s done, but I’m making it so if it starts with a quote, the value can have spaces and ends at the terminating quote

i was actually gonna suggest using something like this to get all the attributes


i forgot about spaces in attribute values…
you’re okay handling that though, right?


Yeah
From code

?!doctype perf
?perf~lang=en~attr="many values"
?body
?par
hello world!
!par
!body
!perf
Script pic

Hold on it was slightly broken, i fixed it

image
hm, why does it do this?

Hm, I didn’t notice that. I’ll fix it tomorrow

I fixed it. Again, I can’t result pic until later, because these Chromebooks are genuinely some of the worst devices I’ve ever used.


Actually here just have the project Perf by owlsss | Snap! Build Your Own Blocks

nice
although, here’s an idea i had while thinking about lexers: what if elements could be parsed as values for other elements? or, alternatively, what if elements and values could have a sort of child/parent relationship tree?

here are two examples to explain what i mean:

elements parsed as 'values'

code

?!doctype perf
?perf
  ?head
    ?title
      Hello, World!
    !title
  !head
  ?body
    ?div
    !div
  !body
!perf

structure

doctype
- value: "perf"
perf
- value1: head
-- value: title
--- value: "Hello, World!"
- value2: body
-- value: div
--- value: nil
elements and values parsed as children

code

?!doctype perf
?perf
  ?head
    ?title
      Hello, World!
    !title
  !head
  ?body
    ?div~class="main"
    !div
  !body
!perf

structure

element: doctype
- value: "perf"
element: perf
- element: head
-- element: title
--- value: "Hello, World!"
- element: body
-- element: div
--- attribute: class
---- value: "main"

I don’t think I understand what you’re asking?
The div is already a child of the body, which itself is a child of perf

sorry, i meant that i wondered if it could be taken into consideration by the program during the process of parsing perf code
as in the way it outputs the parsed tokens

Hm, we’ll see.
I’m currently working on another project right now

kk


off-topic...

i like your new picture!

Thank you

Is there any new news concerning the code so I can implement the GUI?

At what Y-axis should the renderer start to render

170-175 probably

Any updates?

Guys! Any updates?

thanks btw no one responded to me