Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 171
» Latest member: cawilkins
» Forum threads: 20
» Forum posts: 67

Full Statistics

Online Users
There are currently 8 online users.
» 2 Member(s) | 5 Guest(s)
Google, elmines, lusth

Latest Threads
Java Idiosyncrasies
Forum: Lexical Analysis
Last Post: elmines
01-20-2019, 11:09 PM
» Replies: 3
» Views: 109
Notes from Class
Forum: Class notes
Last Post: azhall
01-20-2019, 07:30 PM
» Replies: 1
» Views: 82
Scam Help for Mac
Forum: The Scam Programming Language
Last Post: meganw
01-19-2019, 03:45 PM
» Replies: 0
» Views: 35
Submission
Forum: Grammars
Last Post: jwarburton
01-18-2019, 11:20 PM
» Replies: 4
» Views: 203
Program.txt Comments
Forum: Grammars
Last Post: lusth
01-17-2019, 08:55 PM
» Replies: 1
» Views: 138
Usefulness of "Types" cla...
Forum: Lexical Analysis
Last Post: lusth
01-17-2019, 08:54 PM
» Replies: 3
» Views: 128
Milestone Submissions
Forum: Grammars
Last Post: lusth
01-17-2019, 06:57 PM
» Replies: 1
» Views: 121
Notes from class
Forum: Class notes
Last Post: katiez07
01-17-2019, 03:23 PM
» Replies: 0
» Views: 74
Format for grammar.txt an...
Forum: Grammars
Last Post: lusth
01-16-2019, 05:44 PM
» Replies: 15
» Views: 804
libreadline7
Forum: The Scam Programming Language
Last Post: lusth
01-15-2019, 04:52 PM
» Replies: 0
» Views: 80

 
  Java Idiosyncrasies
Posted by: elmines - 01-19-2019, 07:12 PM - Forum: Lexical Analysis - Replies (3)

Regarding compiler warnings, is there any higher level of warnings for Java than -Xlint ?

Also, since (as far as I know) javac cannot be used to make native executables, what is the best way to provide the "scanner" executable? Assuming one has a "Scanner.class" file, I suppose one could make a bash script called "scanner":


#!/bin/bash
java Scanner $1

Would this be acceptable?

Print this item

  Scam Help for Mac
Posted by: meganw - 01-19-2019, 03:45 PM - Forum: The Scam Programming Language - No Replies

During class last week someone was having trouble using the command:

Code:
export arch=`dpkg --print-architecture`
while using a Mac to install Scam.

If you are having this issue as well, use the command:

Code:
brew install dpkg

prior to the "export arch=..." command listed above, and you should be good.

Print this item

  Submission
Posted by: WLoumakis - 01-18-2019, 02:34 AM - Forum: Grammars - Replies (4)

This could just be me not installing the submit system properly, or just my computer not liking me, so fair warning.

That being said, however, when I'm on campus I'm able to submit perfectly fine, but off campus I get the following error:

Code:
ssh: connect to host troll.cs.ua.edu port 22: Connection refused

Do I need to be on the university network (either by VPN or actual connection) to submit? I don't recall having to use the VPN to submit off campus, but I could also be wrong in this regard too.

Print this item

  Notes from Class
Posted by: azhall - 01-17-2019, 07:58 PM - Forum: Class notes - Replies (1)

Here's the link to a google drive with all of my notes!! I'll update this after every class. If you have any questions at all just let me know! 
https://drive.google.com/open?id=1lq11eR...PZ-rRee-U1

Print this item

  Program.txt Comments
Posted by: meganw - 01-17-2019, 06:58 PM - Forum: Grammars - Replies (1)

I feel compelled to "comment" throughout my program.txt (even though I know commenting in a .txt is not a thing). Would something of this nature be a helpful exercise for grading purposes, though? Or to help us keep track of the (non)terminals we have used?

Print this item

  Milestone Submissions
Posted by: agramsayer - 01-17-2019, 06:35 PM - Forum: Grammars - Replies (1)

I can see that in the schedule it says the dates that the milestones are due, but I can't find anything about what time they are due on those dates. It says programming assignments are due at 5:00pm on their due date, does that apply to these as well? Additionally, does that mean that the same 48 hour grace period is allowed on the milestones?

Print this item

  Usefulness of "Types" class
Posted by: jnmartin8 - 01-17-2019, 05:27 PM - Forum: Lexical Analysis - Replies (3)

For the assignment requirements, it is suggested to implement a Types class. However in the class discussion on Jan 17 and in the reading for the lexical module, it is suggested to simply assign Type as a string property on the Lexeme class. Is there any benefit or usefulness for making a separate class for Types?

Print this item

Big Grin Notes from class
Posted by: katiez07 - 01-17-2019, 03:23 PM - Forum: Class notes - No Replies

I'll post my class notes on this thread if they're useful to anyone!



Attached Files
.txt   notes 1-17.txt (Size: 7.82 KB / Downloads: 36)
Print this item

  libreadline7
Posted by: lusth - 01-15-2019, 04:52 PM - Forum: The Scam Programming Language - No Replies

If your Ubuntu system does not have libreadline7 installed, try this:

locate libreadline.so

Note where the readline libraries are located. Suppose it is /lib/x86_64-linux-gnu. Then do this:

wget beastie.cs.ua.edu/proglan/libreadline.so.7
wget beastie.cs.ua.edu/proglan/libreadline.so.7.0
sudo cp libreadline.so.7* /lib/x86_64-linux-gnu/

Let me know if it works.

Print this item

  Return in Grammar
Posted by: sammaryland - 01-15-2019, 03:50 PM - Forum: Grammars - Replies (2)

In our grammar, should we account for a return statement? Or since it is a keyword we don't necessarily need to include it?

Print this item