Editing
Programming Language
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Binary Representation of Source Code= * Represents the '''source code'''. Is not any kind of executable code (ASM/bytecode). Not an IR. * Take any valid text source code, turn it into the binary representation and back again and end up with the same byte for byte file. * Not storing individual token (ie no LEFT_BRACE). But do need to keep things like whitespace and comments. * Edit source code not text. * But still allows for people to use standard text editors. * Also allows for non-text sourcecode specific editors. ** Quick and efficient editing of the binary format (ie quickgo/quickrust concept programs). ** Graphically represent source code (not the same as a graphical programming language, ie blocky, just an eaiser way to see read code). ** Having things like frames around things like data structures and function definitions. ** Could have UML like representations (Not advocating for UML specifically, but it's a possibility). ** Easy/quick navigation of source code. Things like goto definition would be much easier to represent. * Makes tooling much easier. Can allow for libraries for manipulation of the code that tooling can use. * Down side, any time you have an invalid syntax everything breaks. But that happens anyway with normal code... * Could use a virtual filesystem to automatically convert stored binary to text or visa versa. * Any text you edit could basically have any syntax you like, although obviously a standardised version would be best. * Could allow for syntax changes. * Could allow for special keywords for editing with a basic text editor (ie 'def myfunctionname' could be hooked to actually insert a function definition nearby on file save and the 'def' keyword removed). * Would be easier with a well defined syntax for the source code (ie define tabs vs spaces, number of newlines between functions). * But might be better to just store tabs/spaces and newlines in the binary format.
Summary:
Please note that all contributions to Hegemon Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Hegemon Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information