You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
Why do you need a parser to check the range used? Can't you just look at the last line of the file?dave– dave2020-01-16 02:20:10 +00:00Commented Jan 16, 2020 at 2:20
-
You still have to parse the number :-) It's all regex in the end.Maury Markowitz– Maury Markowitz2020-01-16 15:06:08 +00:00Commented Jan 16, 2020 at 15:06
-
While BBC BASIC did accept 0 as a line number, an error at line 0 would be reported with the "at line 0" omitted as if it were an immediate mode error.TheBeardyMan– TheBeardyMan2020-10-21 10:30:54 +00:00Commented Oct 21, 2020 at 10:30
-
Do you have a link to your lex/yacc code and the results? I'm curious what the maximums were and what the "reserved for system use" line numbers were used for on various machines. (Also, does "-ve" mean "negative"? You may want to change that in your answer as it was confusing.)hackerb9– hackerb92022-08-24 21:23:03 +00:00Commented Aug 24, 2022 at 21:23
-
Your question about Atari's BASIC using signed numbers makes me wonder if it might share lineage with VAX BASIC which also had a max of 32767. According to Wikipedia, VAX BASIC was based on DEC's BASIC-PLUS for the PDP-11 from 1972. DEC's manual ( archive.org/details/…) states the max line number is 32767.hackerb9– hackerb92022-08-24 21:29:09 +00:00Commented Aug 24, 2022 at 21:29
|
Show 3 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. ms-dos), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you